Generators
Random Number Generator
Generate random numbers between any minimum and maximum. Pick a single number or a whole list, avoid duplicates for raffles and lucky draws, or flip a coin and roll dice in one click.
Generate Random Numbers
Set the range and how many numbers you need. Every result uses your browser's cryptographically secure random number generator.
How to Use the Random Number Generator
- Enter the smallest and largest numbers that can be picked. Both are included in the range.
- Choose how many numbers you need, up to 10,000 at once.
- Keep No repeats ticked when each number should only appear once, such as for raffle tickets. Untick it to allow the same number more than once, like rolling dice repeatedly.
- Tick Sort results to list the numbers from smallest to largest.
- Press Generate. Use Copy to paste the results into a spreadsheet or message.
Popular Uses
- Giveaways and lucky draws: number your entries, for example the comments on a social media post, then pick a random winner between 1 and the total number of entries.
- Classroom activities: choose a random student by roll number, or put students into random groups.
- Games: roll a die, flip a coin, or pick a random player to go first.
- Lottery-style picks: generate 6 numbers from 1 to 49 with no repeats and sorted results.
- Sampling and testing: select random rows from a data set for an audit or quality check, or create test data.
- Decisions: assign a number to each option and let chance decide where to eat or what to watch.
Running a Fair Giveaway
To make a social media or WhatsApp group giveaway transparent, list all valid entries in order and number them before drawing. Announce the range you will use, then generate the winning number on a screen recording or live stream. If you need backup winners in case the first does not respond, generate several numbers at once with "No repeats" ticked and announce them in order.
How Random Are the Numbers?
Many simple online generators use JavaScript's Math.random(), which is fast but not designed to be unpredictable. This generator uses the Web Crypto API (crypto.getRandomValues), a cryptographically secure source of randomness provided by your browser and operating system. It also uses a technique called rejection sampling so that every number in the range has exactly the same chance of being picked, with no bias towards smaller numbers.
For legally regulated lotteries and gambling, use the certified systems required by your local regulator. For everyday draws, games and classroom use, this generator is fair and unbiased.
Probability Quick Reference
| Event | Chance |
|---|---|
| Coin lands on heads | 1 in 2 (50%) |
| Die shows a 6 | 1 in 6 (about 16.7%) |
| Picking a specific number from 1 to 100 | 1 in 100 (1%) |
| Matching all 6 numbers from 1 to 49 | 1 in 13,983,816 |
Privacy
Numbers are generated on your device. Nothing is sent to a server or recorded, so results cannot be viewed or changed by anyone else.
Frequently Asked Questions
How do I pick a random number between 1 and 10?
Enter 1 as the minimum and 10 as the maximum, leave "How many numbers" at 1 and press Generate. Both 1 and 10 can be picked.
Can I generate random numbers without repeats?
Yes. Keep "No repeats" ticked and every number in the result will be different. The count cannot be larger than the number of values in the range.
Are the numbers truly random?
They come from the Web Crypto API, a cryptographically secure random generator, with rejection sampling so every number is equally likely. This is much stronger than the Math.random() function used by many sites.
Can I use this for a giveaway?
Yes. Number your entries, set the range from 1 to the number of entries and generate the winner. Generate several numbers with no repeats to choose backup winners.
Can I generate negative numbers?
Yes. The minimum and maximum can be negative, for example from −50 to 50.
How many numbers can I generate at once?
Up to 10,000 numbers per click. Use Copy to paste them into a spreadsheet.