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

first

// usage randBox.first() randBox.first({ nationality: 'en' })

Generate a random first name

randBox.first(); => 'Leila'

Optionally specify a gender to limit first names to that gender

randBox.first({ gender: "female" }); => 'Emma'

Optionally specify a nationality to limit first names to those most common of that nationality

randBox.first({ nationality: "it" }); => 'Alberto'

Note, currently support for nationality is limited to: 'en', 'it', 'nl', 'fr'.

Last updated on: