Pick a number: 1–3, 1–10 and other common ranges
Type the range into From and To and press the button. Some ranges people ask for all the time:
| You want | Set From – To | Ready-made page |
|---|---|---|
| Pick a number 1 or 2 | 1 – 2 | 1 or 2 |
| Pick a number 1–3 | 1 – 3 | This page |
| Pick a number 1–4 or 1–5 | 1 – 4 or 1 – 5 | 1–4, 1–5 |
| Roll a die (1–6) | 1 – 6 | 1–6 |
| Give me a number 1–10 | 1 – 10 | This page |
| Pick a number 1–20 or 1–100 | 1 – 20 or 1 – 100 | 1–20, 1–100 |
Just need any number? Leave the defaults and press the button: it gives you a number between 1 and 100.
What you can use it for
Raffles and giveaways
Number your entries, set the range to match, and draw winners with No repeats on so nobody wins twice.
Lottery-style picks
For a 6-from-49 draw, set 1 to 49, choose 6 numbers, No repeats on and Smallest first.
Games and classrooms
Pick who goes first, choose a random question number or split a class into teams.
Sampling and testing
Choose random rows to check in a spreadsheet, or generate test data for forms. Prefer formulas? See random numbers in Excel.
Popular ranges
Each of these opens the same generator with the range already set, plus tips for that use:
How the generator works
Every whole number from your minimum to your maximum, including both ends, has exactly the same chance of being picked. With No repeats on, the draw works like pulling numbered balls out of a bag: once a number is drawn, it can't come up again in that batch. With it off, every pick is independent, like rolling a die many times.
If you ask for more unique numbers than the range contains (say 20 numbers between 1 and 10), you'll get every number in the range once.
Need a coin flip rather than a number? The Yes or No Generator answers any question in one click.
Generating numbers in code instead? Our guide to random numbers in Python covers randint, sample and NumPy, and the Excel guide does the same for RANDBETWEEN and RANDARRAY.
Frequently asked questions
Is this random number generator truly random?
Can I generate negative numbers?
How many numbers can I generate at once?
last updated