你的数字
在你的浏览器中生成。按空格键再生成一次。
在任意两个值之间随机生成小数,最多十位小数。
在你的浏览器中生成。按空格键再生成一次。
以 JSON 获取随机小数结果。接口只读,少量使用无需 API 密钥,并支持跨域请求。
/api/v1/tools/random-decimalcurl https://randnext.com/api/v1/tools/random-decimal?min=0&max=1&decimals=4&count=3| 参数 | 类型 | 作用(英文) | 默认值 / 允许的值 |
|---|---|---|---|
min | number | Lowest numeric value that may be returned, inclusive. | 默认:0-1000000 到 1000000 |
max | number | Highest numeric value that may be returned, inclusive. | 默认:1-1000000 到 1000000 |
decimals | integer | Exact number of digits after the decimal point. | 默认:21 到 10 |
count | integer | Number of results to return. | 默认:11 到 50 |
一样,在所选精度下,最小值到最大值之间的每个值机会都相同。
是的。数值来自浏览器的密码学安全随机源,每个可能的值机会都相同。