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"
最后更新于: