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

dollar

// 使い方 randBox.dollar() randBox.dollar({max: 250})

ランダムなドル額を返します。

randBox.dollar(); => "$2560.27" randBox.dollar(); => "$750.99"

デフォルトでは 10000 を超えないドル額を返します。必要に応じて max パラメータを指定して、より大きく(または小さく)することができます。

randBox.dollar({max: 20}); => "$15.23" randBox.dollar({max: 10000000}) => "$5051205.49"
最終更新日: