Random Number Generator — Any Range, Crypto-Secure
About the Random Number Generator
Set a range (say 1 to 100) and how many numbers you need, and this generator draws them using the browser's cryptographically secure random source — the same quality of randomness used for encryption keys, not the predictable Math.random.
A no-duplicates mode turns it into a lottery-style drawer: every number in the range appears at most once, perfect for raffles, classroom picks, giveaway winners or sampling without replacement.
How to use the Random Number Generator
- Enter the minimum and maximum of your range (inclusive).
- Choose how many numbers to draw and whether duplicates are allowed.
- Click Generate.
How random is it?
Values come from crypto.getRandomValues with rejection sampling, so every number in your range has exactly equal probability — no modulo bias toward lower values.
Frequently asked questions
Is the result fair enough for a giveaway or lottery?
Yes — the crypto random source with unbiased sampling gives every value equal odds, and no server is involved, so nobody (including us) can influence the draw.
Are min and max included?
Yes, both endpoints are inclusive: a 1–6 range behaves exactly like a die.
What if I ask for more unique numbers than the range contains?
The tool warns instead of looping forever — widen the range or allow duplicates.
Related tools
List Randomizer
Paste any list — names, tasks, options, giveaway entries — and either shuffle the whole thing into a random order or draw one…
Password Generator
This generator creates passwords from cryptographically secure randomness — the browser's crypto.getRandomValues, the same…
Mean, Median & Mode Calculator
Paste or type a list of numbers and this calculator reports the full statistics set: arithmetic mean, median (middle value),…