返回计算器中心
Random Number Generator
数学Results—
Random Number Generator
Need a fair pick between bounds? This Random Number Generator draws integers or decimals in a range you define — useful for raffles, classroom examples, and quick simulations in the 浏览器.
使用方法
- Set minimum and maximum values.
- Choose integer or decimal mode.
- Click generate (optionally multiple draws).
- Copy results as needed.
背后的逻辑 / 公式
Integers use uniform sampling over inclusive bounds. Decimals use Math.random() scaled into [min, max).
实际示例
- Dice feel: min 1 max 6 integer.
- Sampling: 10 draws between 0 and 1.
- Lottery-style picks within a ticket range.
常见问题
Is this cryptographically secure?
否 — it uses standard JS Math.random for convenience, not security-sensitive keys or lotteries needing CSPRNG.
Are duplicates possible?
是 in independent draws unless you implement sampling without replacement.
Inclusive bounds?
Integer mode includes both min and max.
