首页Home › 随机生成Random Generators
🎲 随机小数生成器Random Decimal Number Generator
在指定范围内生成随机小数:可设小数位数(0–15)、数量、是否不重复和排序,按十进制精确计算、两端都包含、分布均匀,使用加密级随机数。Generate random decimal numbers in a range with 0–15 decimal places, a count, optional no-repeats and sorting — exact decimal maths, endpoints included, uniform and cryptographically random.
使用说明与常见问题How-to & FAQ
「随机小数生成器」是什么?What is the Random Decimal Number Generator tool?
在指定范围内生成随机小数:可设小数位数(0–15)、数量、是否不重复和排序,按十进制精确计算、两端都包含、分布均匀,使用加密级随机数。Generate random decimal numbers in a range with 0–15 decimal places, a count, optional no-repeats and sorting — exact decimal maths, endpoints included, uniform and cryptographically random.
如何使用「随机小数生成器」?How do I use the Random Decimal Number Generator tool?
在「随机小数生成器」中,按需设置「最小值」、「最大值」、「小数位数」、「数量」、「分隔」等选项,然后点击「生成」、「复制」按钮即可。In the Random Decimal Number Generator: Set "Min", "Max", "Decimal places", "Count", "Separator", then click "Generate", "Copy".
为什么说“精确”?Why "exact"?
工具先把范围按小数位数换成整数网格(如 0–1、2 位小数即 0–100 共 101 个值),再均匀抽取整数,最后插入小数点,所以不会出现 0.30000000000000004 这样的浮点误差,两端值也能取到。The range is turned into an integer grid at your precision (0–1 with 2 places = 101 values, 0–100), an integer is drawn uniformly, then the decimal point is put back — so no 0.30000000000000004 float errors, and both endpoints can occur.
可以当抽奖或密码用吗?Is it OK for draws or secrets?
随机数来自 crypto.getRandomValues,并用拒绝采样避免取模偏差,适合抽签、抽样和测试数据。Numbers come from crypto.getRandomValues with rejection sampling (no modulo bias), suitable for draws, sampling and test data.
随机结果真的随机吗?Is the randomness truly random?
「随机小数生成器」使用浏览器的 crypto.getRandomValues(密码学安全随机数)生成随机数据,不使用可预测的 Math.random。The Random Decimal Number Generator uses crypto.getRandomValues (cryptographically secure randomness), not the predictable Math.random.
「随机小数生成器」免费吗?需要注册吗?Is the Random Decimal Number Generator free? Do I need an account?
「随机小数生成器」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Random Decimal Number Generator is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.