Random number generator
Draw random whole numbers between a minimum and maximum, with or without duplicates.
Generate numbers
Whole numbers, with both ends included.
History
Your draws will show here.
How to generate a random number
- Enter the minimum and the maximum. Both can come up.
- Choose how many numbers you want, from 1 to 1,000.
- Tick No duplicates if every number in the draw must be different.
- Press Generate.
Use Order to see the numbers as they were drawn or from low to high. Negative numbers work, and you can write thousands with commas. Copy takes the whole result, and the history keeps your last 100 draws.
How random is it?
The numbers come from your browser’s secure random generator, which is made for jobs where guessing must not be possible. Each whole number in your range has the same chance. The range is also handled so the numbers at the start aren’t slightly favored, a common flaw when a large random value is squeezed into a smaller range with a remainder.
Past draws don’t affect the next one, so there are no hot or overdue numbers. If 7 has come up three times, it is exactly as likely as any other number next time.
With or without duplicates?
With duplicates is like rolling a die: each draw starts with the full range, so a number can repeat. Without duplicates is like pulling tickets from a hat: once a ticket is out, it stays out until the next draw.
Repeats happen sooner than people expect. Draw 23 numbers from 1 to 365 and the chance that at least two match is just over 50%. If a repeat would be a problem, tick the box.
Without duplicates, you can’t ask for more numbers than the range holds. From 1 to 5, the most is five, and that gives you the five numbers in a random order.
Settings for common jobs
| Job | Minimum | Maximum | How many | No duplicates |
|---|---|---|---|---|
| Pick one of 30 people | 1 | 30 | 1 | Either |
| Six different picks from 49 | 1 | 49 | 6 | Yes |
| Roll a hundred-sided die | 1 | 100 | 1 | Either |
| A four-digit number | 1000 | 9999 | 1 | Either |
| Shuffle the order of 10 items | 1 | 10 | 10 | Yes |
| A random bit string | 0 | 1 | 8 | No |
For the shuffle, keep the order set to “As drawn”. Sorting would put the numbers back in line.
The chance of any one number
Divide 1 by how many numbers are in the range. The size of the range is the maximum minus the minimum, plus 1, so 1 to 100 holds 100 numbers and 0 to 100 holds 101. From 1 to 49, a single draw has a 1 in 49 chance for each number. For six different numbers, there are 13,983,816 possible sets.
To make random letters and symbols instead, use the password generator.
Questions people ask
Are the minimum and maximum included?
Yes. A draw from 1 to 10 can give 1, 10, or anything between.
Can it make decimals?
Not directly. For one decimal place, draw from 10 to 100 and divide by 10 to get 1.0 to 10.0.
Can I draw names instead?
Yes. Spin the wheel picks from a list of names, and the random team generator splits a list into groups. For dice notation such as 2d6, use the dice roller.
Should I use it for passwords?
A password manager is a better choice, since it makes long mixed passwords and stores them safely.
Are my numbers saved?
No. They stay on this page, and reloading clears them.
Other tools
- Coin flipperFlip one coin or up to 100 at once.
- Dice rollerRoll d4 to d20, up to 20 dice, with the total.
- Spin the wheelPaste names, spin, and pick a winner.
- Yes or no wheelSpin for a yes, a no, or a maybe.
- Random team generatorSplit a list of names into even teams.
- Basic calculatorAdd, subtract, multiply and divide, with memory and history.