Random number generator

Draw random whole numbers between a minimum and maximum, with or without duplicates.

Generate numbers

Whole numbers, with both ends included.

ResultPress Generate to draw a number.

History

Your draws will show here.

How to generate a random number

  1. Enter the minimum and the maximum. Both can come up.
  2. Choose how many numbers you want, from 1 to 1,000.
  3. Tick No duplicates if every number in the draw must be different.
  4. 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

JobMinimumMaximumHow manyNo duplicates
Pick one of 30 people1301Either
Six different picks from 491496Yes
Roll a hundred-sided die11001Either
A four-digit number100099991Either
Shuffle the order of 10 items11010Yes
A random bit string018No

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