Skip to Content
๐ŸŽฒ Welcome to RandBox - Powerful JavaScript Random Data Generation Library! Learn More

country

// usage randBox.country() randBox.country({ full: true })

Return a random country.

randBox.country(); => 'LT'

By default, returns only the 2 letter ISO 3166-1 code for the country.

Optionally specify that it ought to return a full country name.

randBox.country({ full: true }); => 'Venezuela'
Last updated on: