跳到正文
RandNext
Esc

随机小数生成器

在任意两个值之间随机生成小数,最多十位小数。

  • 在浏览器中生成
  • 公平的密码学随机
  • 一键全部复制

你的数字

在你的浏览器中生成。按空格键再生成一次。

随机小数 API

以 JSON 获取随机小数结果。接口只读,少量使用无需 API 密钥,并支持跨域请求。

GET/api/v1/tools/random-decimal
curl https://randnext.com/api/v1/tools/random-decimal?min=0&max=1&decimals=4&count=3

参数

参数类型作用(英文)默认值 / 允许的值
minnumberLowest numeric value that may be returned, inclusive.默认:0-1000000 到 1000000
maxnumberHighest numeric value that may be returned, inclusive.默认:1-1000000 到 1000000
decimalsintegerExact number of digits after the decimal point.默认:21 到 10
countintegerNumber of results to return.默认:11 到 50
查看参数、响应和限制 →

你可能还喜欢

使用方法

  1. 1设定最小值和最大值。
  2. 2选择小数位数和数量。
  3. 3点“生成”并复制。

常见问题

每个值的概率都一样吗?

一样,在所选精度下,最小值到最大值之间的每个值机会都相同。

真的是随机的吗?

是的。数值来自浏览器的密码学安全随机源,每个可能的值机会都相同。