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

last

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

Generate a random last name

randBox.last(); => 'Mago'

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

randBox.last({ nationality: 'it' }); => 'Giovannini'

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

Last updated on: