How to use the random number generator
- Type a Minimum and a Maximum. Whole numbers only. Negative numbers work too. If you enter them the wrong way round, the tool swaps them for you.
- Set How many numbers you want, from 1 to 1,000.
- Leave Allow duplicates checked if a number may come up more than once. Uncheck it to get each number only once.
- Check Sort results to list the numbers from smallest to largest.
- Select Generate (again for a new draw). Copy All copies the list, separated by commas.
Common ranges and the odds of each number
Every whole number in your range has the same chance. The chance of any one number is 1 divided by how many numbers are in the range.
| Use | Range | Chance of one number |
|---|---|---|
| Coin flip (1 = heads, 2 = tails) | 1 to 2 | 50% |
| Roll a die | 1 to 6 | 1 in 6 (about 16.7%) |
| Pick a number 1 to 10 | 1 to 10 | 10% |
| Roll a 20-sided die | 1 to 20 | 5% |
| Pick a number 1 to 100 | 1 to 100 | 1% |
| Pick a number 1 to 1,000 | 1 to 1,000 | 0.1% |
Past results do not change the next one. If 7 just came up, it is exactly as likely to come up again on the next draw.
Random numbers without repeats
With Allow duplicates on, each number is picked on its own, so repeats happen more often than most people expect. Draw 10 numbers from 1 to 100 and you will get at least one repeat about 37% of the time.
Uncheck Allow duplicates and each number can appear only once. The tool picks the numbers one by one without listing the whole range, so even a huge range such as 1 to 100,000,000 gives results instantly. This is how to draw lottery-style numbers, such as 6 different numbers from 1 to 49. You cannot ask for more unique numbers than the range holds: 1 to 10 gives at most 10.
How to pick a random winner for a giveaway
- Put your entries in a list, one per line. Remove double entries first with Remove Duplicate Lines if each person may enter only once.
- Number the list from 1 to the total number of entries.
- Set Minimum to 1 and Maximum to the total. Set How many to the number of winners.
- Uncheck Allow duplicates so no one can win twice, then select Generate.
- Match each number to its line. Screenshot the settings and result to show the draw was fair.
- For backup winners, draw extra numbers in the same go.
How the numbers are made
The tool uses crypto.getRandomValues, the random source built into your browser for security work, and never falls back to the simpler Math.random. Raw values that would favor some numbers are thrown away and drawn again, so every number in your range has exactly the same chance, even in very large ranges.
If you need a password or a random code with letters, use the Password Generator or the Random String Generator instead.
Common Mistakes to Avoid
Expecting decimal numbers
Solution:
Leaving Allow duplicates checked for a prize draw
Solution:
Asking for more unique numbers than the range holds
Solution:
Asking for more than 1,000 numbers
Solution:

