Random Number Generator
Generate random numbers in any range, with or without repeats. Quick presets for lottery numbers, dice and coin flip.
About this tool
Set a minimum, maximum and how many numbers you need. Choose unique numbers for raffles and lotteries, or allow repeats for dice-style rolls.
Numbers come from your browser's cryptographically secure generator. Lottery presets are for fun — every combination has exactly the same chance.
How to generate random numbers
- Set the minimum and maximum (both included).
- Choose how many numbers you need.
- Tick 'no duplicates' for raffles and lotteries; untick it for dice-style rolls.
- Press Generate, or use a preset for lottery numbers, a die or a coin.
Lottery odds
| Game | Combinations | Jackpot odds |
|---|---|---|
| 6 of 45 (Korea Lotto) | 8,145,060 | 1 in 8.1 million |
| 6 of 49 | 13,983,816 | 1 in 14 million |
| 6 of 43 (Japan Loto 6) | 6,096,454 | 1 in 6.1 million |
| 7 of 37 (Japan Loto 7) | 10,295,472 | 1 in 10.3 million |
Every combination — including 1, 2, 3, 4, 5, 6 — has exactly the same chance. Random picks don't improve your odds, but they do reduce the chance of sharing a prize with people who chose popular patterns like birthdays.
Truly random
Numbers come from crypto.getRandomValues, the browser's cryptographically secure source, with rejection sampling so every value in the range is equally likely.
Common uses
- Raffles and giveaways: number the entries and draw without duplicates.
- Games: dice rolls, coin flips and turn order.
- Teaching: random questions or student numbers.
- Sampling: pick random rows for a survey or quality check.
Frequently asked questions
Are the numbers truly random?
They come from crypto.getRandomValues, a cryptographically secure source.
Can it improve my lottery odds?
No. Every combination has the same probability.
How many numbers can I generate?
Up to 1,000 at once.