Random Number Generator
Pick a random number in any range, or generate a whole list with no repeats. Includes lottery presets and uses your browser's secure random generator.
History
- Your draws will appear here.
How to use the Random Number Generator
- Set the range with the Min and Max boxes, or tap a preset such as 1–100 or a dice roll.
- Choose how many numbers you want, and tick No repeats if every number must be different.
- Press Generate. Press it again (or hit Enter) for a new draw.
- For lottery numbers, pick a game from the Lottery menu. Main numbers and bonus balls are drawn separately, just like the real draw.
Lottery presets
| Game | Main numbers | Bonus numbers |
|---|---|---|
| Powerball (US) | 5 from 1–69 | 1 Powerball from 1–26 |
| Mega Millions (US) | 5 from 1–70 | 1 Mega Ball from 1–24 |
| EuroMillions | 5 from 1–50 | 2 Lucky Stars from 1–12 |
| EuroJackpot | 5 from 1–50 | 2 Euro numbers from 1–12 |
| UK Lotto | 6 from 1–59 | – |
| Lotto 6/49 | 6 from 1–49 | – |
| Keno | 20 from 1–80 | – |
Game rules change from time to time, so check the official rules of your lottery before you play.
Ideas for using a random number generator
- Giveaways and raffles: number the entries and draw the winners with No repeats.
- Games: roll a dice (1–6), flip a coin (0 or 1) or pick who goes first.
- Teaching and quizzes: pick a random student or question number.
- Testing and statistics: generate thousands of sample values and download them as a list.
Frequently asked questions
Are the numbers truly random?
The generator uses your browser's cryptographic random number generator (crypto.getRandomValues), the same source used for passwords and encryption keys. Each number in the range is equally likely.
How do I pick a random number between 1 and 100?
Set Min to 1 and Max to 100 (or tap the 1–100 preset) and press Generate. Both 1 and 100 can be picked.
Can I generate numbers without repeats?
Yes. Tick No repeats and every number in the result will be different, like drawing balls from a bag. You can't ask for more unique numbers than there are in the range.
Can I use it for a giveaway or raffle?
Yes. Number your entries, set the range from 1 to the number of entries and generate one number, or several with No repeats for multiple winners.
Does it improve my lottery odds?
No. Every combination has the same chance of winning. The lottery presets are a quick way to get valid picks for each game, nothing more.
Is my history saved?
Your recent draws are kept only in this browser tab. Nothing is sent to a server.