Random Number Generator
Pick random numbers between a minimum and maximum. Choose how many, allow or block duplicates, and exclude values.
How to use it
Enter the lowest and highest numbers you want, set a quantity, then press Generate. Both Min and Max can be picked.
Settings
Allow duplicates lets the same number appear more than once in a set. Exclude removes specific values, such as numbers already drawn in a prize draw. Sort low to high lists results in order. Quantity sets how many numbers you get at once, from 1 to 100.
Popular ranges
| Range | Chance of any one number | Good for |
|---|---|---|
| 1 to 6 | 16.7% | Standing in for a die, or picking one of six options |
| 1 to 10 | 10% | Quick picks for kids, rating games, choosing a question from a numbered list |
| 1 to 12 | 8.3% | A random month |
| 1 to 52 | about 1.9% | A random week of the year |
| 1 to 100 | 1% | Guess the number, percent games, picking a page or a problem number |
| 1 to 365 | about 0.27% | A random day of the year. Use 1 to 366 in a leap year |
For a whole set of numbers with no repeats, like a numbered worksheet in random order, set Min and Max to the first and last number, Quantity to the size of the range, and leave Allow duplicates off. You get every number once, in random order. This works for ranges of up to 100 numbers.
Guess the number
- One player sets the range, say 1 to 100, presses Generate number and keeps the screen hidden.
- The others take turns guessing.
- After each guess, the player says higher or lower.
- Count the guesses. Fewest guesses after three rounds wins.
There is a strategy that always works: guess the middle of what is left. Each answer then cuts the possible numbers in half.
| Range | Most guesses needed when you always pick the middle |
|---|---|
| 1 to 10 | 4 |
| 1 to 100 | 7 |
| 1 to 1,000 | 10 |
In class, this turns into a lesson on halving: ask students why 1 to 1,000 needs only three more guesses than 1 to 100.
A prize draw by ticket numbers
For a school fair, a class reward or door prizes at an office party:
- Hand out numbered tickets, starting at 1.
- Set Min to 1 and Max to the last ticket number.
- Set Quantity to the number of prizes and leave Allow duplicates off.
- Press Generate and read the winning numbers aloud.
- If a winner is not in the room, add that number to Exclude and draw one more.
Show the screen while you draw, so everyone can see the numbers come up.
More ways to use it
- A random sample. Number a list of 300 survey contacts, then generate 20 numbers from 1 to 300 with duplicates off. Those 20 people get the survey, and nobody chose them by hand.
- A probability lesson. Turn Allow duplicates on, generate 100 numbers from 1 to 10 and tally them. Each number should come up about 10 times. Ask the class why the counts are not all exactly 10, then run it again and compare.
- Practice problems. Generate two numbers from 1 to 12 for a times-table question, or from 10 to 99 for two-digit addition. Press Generate again for the next one.
How random is it?
Each number comes from your browser's Web Crypto API, a random number generator built for cryptographic use. The tool turns its random bits into a whole number in your range.
A simple shortcut, taking a random value and using the remainder, would make some numbers slightly more likely than others. The generator avoids that by throwing away the rare values that would cause the tilt and drawing again. Every number from Min to Max, both included, has exactly the same chance. Nothing is sent to a server.
FAQ
Are Min and Max included?
Yes. A range of 1 to 10 can return 1 or 10.
Can I generate negative numbers?
Yes. Enter a negative Min, like -10, and any Max above it. Both must be whole numbers.
Can I get decimals?
No, only whole numbers. For two decimal places, generate a range 100 times larger and divide: 1 to 1,000 divided by 100 gives 0.01 to 10.00.
How many numbers can I generate?
Up to 100 at a time. Without duplicates, the range has to contain enough numbers.
Can I pick numbers for a prize draw?
Yes. Turn duplicates off and add winning numbers to Exclude as you go.
Can the same number come up twice?
Only if Allow duplicates is on. With it off, every number in one set is different.
Last updated About these lists