Random Number Generator
Pick one or many random whole numbers in any range, with or without repeats.
About the Random Number Generator
Set the lowest and highest numbers, how many to draw and whether repeats are allowed. Each number in the range is equally likely.
Numbers come from your browser's cryptographic random generator (the same one used for security keys) and are drawn without bias, so every number in the range is equally likely. Use it for raffles, games and picking samples.
The formula
Each whole number from low to high has probability 1 ÷ (high − low + 1)
Worked example
One number from 1 to 100
- Each has a 1 in 100 chance
- For lottery picks, draw 6 from 1–49 with no repeats
Questions people ask
Is this truly random?
It uses crypto.getRandomValues, a cryptographically secure generator fed by your device's entropy, which is unpredictable in practice.
How do I draw lottery numbers?
Set the range (for example 1 to 49), choose how many, and turn off repeats.