在任意范围内生成随机数,可允许或不允许重复,使用安全随机性。
如何使用 随机数
设置最小值、最大值以及你想要多少个数字。
选择是否允许重复以及如何排序。
点击生成并复制这些数字。
A random number generator that returns whole numbers in any range you set, optionally with no duplicates and optionally sorted, using the browser's secure randomness so the results are genuinely unpredictable.
Everything runs locally with nothing sent to a server, and each run produces a fresh set, since there is no fixed seed to reproduce.
You choose the minimum and maximum and how many numbers you want. The output can allow repeats, or be made unique, in which case the count is capped at the size of the range since you cannot draw more distinct numbers than exist in it.
The randomness comes from crypto.getRandomValues, the browser's cryptographically secure generator, rather than a simple pseudo-random function, so the numbers are not predictable from one another.
That makes it well suited to casual draws and decisions: picking a raffle or giveaway winner, choosing a random participant, rolling for a game, sampling rows for a spot check, or just breaking a tie.
For official lotteries and gambling, certified hardware random generators are legally required; this tool is for everyday, informal randomness rather than regulated draws.
常见问题
它们使用浏览器的加密安全随机生成器(crypto.getRandomValues),适用于游戏、抽签和决策。
可以。关闭“允许重复”即可获得不同的数字。此时数量上限为范围的大小。
它非常适合非正式抽签和挑选获奖者。对于官方彩票,需要经过认证的硬件生成器。
嵌入此工具
将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。
<iframe src="https://monu.tools/embed/zh/random-number-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相关工具