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

ssn

// usage randBox.ssn() randBox.ssn({ ssnFour: true }) randBox.ssn({ dashes: false })

Generate a random social security number.

randBox.ssn(); => '411-90-0070'

Optionally provide option of getting only the last four

randBox.ssn({ ssnFour: true }); => '2938'

Optionally specify dashes be removed

randBox.ssn({ dashes: false }); => '293839295'
Last updated on: