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

age

// usage randBox.age() randBox.age({ type: 'child' })

Generate a random age

randBox.age(); => 45

Default range is between 1 and 120

Optionally specify one of a handful of enumerated age types:

randBox.age({type: 'child'}); => 9

Allowed types are: child, teen, adult, senior

Last updated on: