首页Home › 随机生成Random Generators
🎲 随机挑一个数字Pick Random Digit
从 0-9(或自定义集合)随机挑数字。本地处理。可设置「个数」、「数字集合」、「种子(留空 = 安全随机)」、「每行一个」。Pick random digits from 0-9 (or a custom set). Processed locally. Settings: How many, Digit pool, Seed (blank = secure random), One per line.
使用说明与常见问题How-to & FAQ
「随机挑一个数字」是什么?What is the Pick Random Digit tool?
从 0-9(或自定义集合)随机挑数字。本地处理。可设置「个数」、「数字集合」、「种子(留空 = 安全随机)」、「每行一个」。Pick random digits from 0-9 (or a custom set). Processed locally. Settings: How many, Digit pool, Seed (blank = secure random), One per line.
如何使用「随机挑一个数字」?How do I use the Pick Random Digit tool?
在「随机挑一个数字」中,按需设置「个数」、「数字集合」、「种子(留空 = 安全随机)」,结果会实时显示在下方,点击「复制结果」即可复制。In the Pick Random Digit: Adjust "How many", "Digit pool", "Seed (blank = secure random)"; the result appears below instantly — click "Copy result" to copy it.
只要奇数怎么办?What if I only want odd digits?
把“数字集合”改成 13579 即可,程序只会从你填写的数字里随机选。同理,填 02468 只出偶数,填 0123 只出 0 到 3。Set the digit pool to 13579 and only those digits are drawn. Likewise 02468 gives only even digits and 0123 only 0 to 3.
结果是真随机的吗?「种子」有什么用?Is the output truly random? What does Seed do?
「种子」留空(默认)时,结果用浏览器的 crypto.getRandomValues(密码学安全随机数)生成,每次都不同,每种结果出现的概率相同(偏差小于千万亿分之一)。填写种子后改用确定性的伪随机数生成器(mulberry32):同一种子总是得到同样的结果,便于复现,但结果可以被预测,不要把带种子的结果用于密码或需要公证的抽奖。With Seed left blank (the default), the output comes from the browser's crypto.getRandomValues (cryptographically secure randomness), so it differs every time and every outcome is equally likely (any bias is below one in a million billion). If you enter a seed, a deterministic pseudo-random generator (mulberry32) is used instead: the same seed always gives the same output, which is handy for reproducing a result, but it is predictable, so do not use seeded output for passwords or audited draws.
输入和输出是什么样的?What does the input and output look like?
例如在「随机挑一个数字」中把「个数」设为 5,「数字集合」设为 01,「种子」设为 1,输出为:10111。For example, in the Pick Random Digit with "How many" set to 5, "Digit pool" set to 01, "Seed" set to 1, the output is: 10111.
有哪些选项可以调整?What options can I adjust?
「随机挑一个数字」的设置:「个数」默认 1;「数字集合」默认 0123456789;「种子(留空 = 安全随机)」可留空;可勾选:「每行一个」。每次生成结果都按当前设置处理。Settings in the Pick Random Digit — "How many" default 1; "Digit pool" default 0123456789; "Seed (blank = secure random)" optional; tick boxes: "One per line". The result always uses the current settings.
「随机挑一个数字」免费吗?需要注册吗?Is the Pick Random Digit free? Do I need an account?
「随机挑一个数字」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Pick Random Digit is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.