Random Number Generator
Generate numbers in a range with count, dedup and decimal options, using crypto-grade randomness.
—
How to use
- Set "Min", "Max" and "Count"; tick "Dedup" and/or "Decimal (2)" as needed.
- Click "Generate"; results list one per line, "Copy" copies them all.
- Dedup count must not exceed the integer range, or it warns.
- Tip: crypto-grade source with rejection sampling gives every integer equal probability.
FAQ
How is randomness guaranteed?
Uses crypto.getRandomValues, a crypto-grade source, with rejection sampling so every integer in range is equally likely, avoiding modulo bias.
What if dedup count exceeds the range?
For integer dedup, if count exceeds the number of integers in range, the tool warns "count exceeds range size" to avoid an infinite loop.