Random Number Generator
Draw random numbers for games, raffles, sampling or decisions. Choose a range, how many numbers you need, and whether repeats are allowed.
No data needed
How to use
- Enter the minimum and maximum.
- Choose how many numbers you need.
- Tick “No duplicates” for a lottery-style draw.
- Click Generate.
How it works
Numbers come from the browser's cryptographically secure generator (crypto.getRandomValues) with rejection sampling, which guarantees every integer in the range has exactly the same probability. Many simple generators using “random % range” are slightly biased — this one isn't.
Both the minimum and maximum are included in the possible results.
Examples
- Dice roll
- Range 1–6, one number.
- Lottery-style draw
- 6 unique numbers between 1 and 49, sorted.
Common uses
- Raffles and giveaways
- Games and classroom activities
- Random sampling
Privacy & security
This tool does not take any personal data or files. Results are generated on your device. How each tool handles files
Frequently asked questions
Are the numbers truly random?
They come from a cryptographically secure pseudo-random generator seeded by your operating system's entropy, suitable even for security use.
Can I use this for an official lottery?
Official draws often need certified, audited processes. Use this for informal draws.
Last updated: