Random Number Generator
Generate random numbers in any range using the browser's crypto source, with no-repeat and sort options.
Processed locally in your browser — nothing is uploaded.
Random Number Generator
Up to 10,000.
Numbers come from your browser's cryptographic random source with rejection sampling, so every value in the range is equally likely.
About Random Number Generator
Set a min, max, and count and get uniformly distributed integers from your browser's cryptographic random source. Rejection sampling removes the subtle bias naive modulo tricks introduce, a no-repeats toggle draws without replacement (great for raffles), and a sort toggle orders the output.
Common uses
- Draw raffle or giveaway winners fairly
- Pick random samples for testing or review
- Generate lottery-style unique number sets
Example
Input
Min 1, max 90, count 5, no repeats
Output
7, 23, 41, 58, 86
Frequently asked questions
Are these numbers truly random?
They come from crypto.getRandomValues, the browser's cryptographically secure random source, rather than the weaker Math.random. That makes the output statistically uniform and unpredictable — as random as software gets without dedicated hardware.
Can anyone else see the numbers I generate?
No. Generation happens entirely in your browser and no draw is transmitted or logged anywhere, so a raffle result exists only on your screen until you share it.
What is modulo bias and does this generator avoid it?
Taking a random 32-bit value modulo your range size slightly favors lower numbers whenever the range doesn't divide 2^32 evenly. This generator uses rejection sampling — discarding draws above the largest fair cutoff — so every value in your range is exactly equally likely.
How do I generate random numbers with no duplicates?
Turn on the no-repeats option and the tool draws without replacement, like pulling numbered balls from a drum. The count can't exceed the amount of distinct values between min and max, and generation is capped at 10,000 numbers per run.