Skip to Content
🎲 RandBox へようこそ - 強力な JavaScript ランダムデータ生成ライブラリ! 詳細を見る

age

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

生成一个随机年龄

randBox.age(); => 45

默认范围是 1 到 120 之间

可选择指定几种枚举的年龄类型之一:

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

允许的类型有:child、teen、adult、senior

最終更新日: