Random Number Generator
Pick one or many truly random numbers between any minimum and maximum.
Random Number Generator: Pick Random Numbers in Any Range
This free random number generator picks one or more random numbers between any minimum and maximum you choose. You can draw up to 1,000 numbers at once, choose whole numbers or decimals, prevent repeats, and sort the results.
Each draw is independent and every number in the range has an equal chance of being picked.
People use it for raffles and giveaways, choosing a winner, classroom activities, games, lottery-style picks, random sampling for surveys and research, and settling decisions fairly.
How to Use the Random Number Generator
- Enter the minimum and maximum numbers. Both ends are included, so 1 to 10 can give 1 or 10.
- Choose how many numbers you want.
- Pick whole numbers or a number of decimal places.
- Tick No repeats if each number should appear only once, as in a raffle draw.
- Choose the order, then press Generate. Use Copy to paste the results anywhere.
The quick buttons set up common draws instantly: 1–10, 1–100, a dice roll, a coin flip, a 6-from-49 lottery pick and a 4-digit PIN.
How Random Are the Numbers?
The generator uses your browser’s built-in cryptographic random number source (the Web Crypto API), which is much harder to predict than the ordinary random function in most simple tools.
Each number in your range is equally likely, and when “No repeats” is on, numbers are drawn without replacement like balls from a bag.
Numbers are generated on your own device. Nothing is sent to or stored on our server.
For high-stakes uses, such as official lotteries or security keys, use a certified system designed for that purpose.
Examples
Pick a random number between 1 and 10
Set the minimum to 1 and the maximum to 10, leave “How many” at 1, and press Generate. Each number from 1 to 10 has exactly a 10% chance.
Choose 3 winners from 250 raffle tickets
Set 1 to 250, ask for 3 numbers and keep No repeats ticked so the same ticket cannot win twice. Each ticket has a 3 in 250 (1.2%) chance of being one of the winners.
Lottery-style 6 numbers from 1 to 49
Use the “Lottery 6 of 49” button. There are 13,983,816 possible combinations, so any one ticket has about a 1 in 14 million chance of matching all six.
Random decimal between 0 and 1
Set 0 to 1 and choose 2 or 3 decimal places to get values such as 0.47 or 0.832.
Common Uses
- Giveaways and raffles: number your entries and draw winners without repeats.
- Teaching: pick a student, create random maths questions or demonstrate probability.
- Games: for a quick roll of real-looking dice, try our Dice Roller.
- Statistics: choose a random sample, then analyse it with the Average Calculator or Standard Deviation Calculator.
- Odds and chances: work out probabilities as a percentage with the Percentage Calculator.
Frequently Asked Questions
Are the minimum and maximum included?
Yes. Both numbers you enter can be drawn.
Can I generate negative numbers?
Yes. Enter a negative minimum, for example −50 to 50.
What happens if I ask for more unique numbers than exist in the range?
The generator will tell you. For example, 1 to 10 contains only 10 whole numbers, so you cannot pick 12 of them without repeats. Lower the count or allow repeats.
Is every number equally likely?
Yes. The generator draws uniformly from the range, so no number is favoured, and earlier draws do not change the odds of later ones (unless “No repeats” is on).
How do I pick a random winner from a list of names?
Number the names in your list from 1 upwards, then generate a number between 1 and the total. The name with that number is the winner.
What Are the Odds? Probability Behind Random Numbers
Every whole number in your range has the same chance of coming up. Pick one number from 1 to 100 and each value has a 1 in 100 (1%) chance. A few results surprise people, though:
| Draw | Number of possible results | Chance of one exact result |
|---|---|---|
| 1 number from 1–10 | 10 | 1 in 10 |
| Dice roll (1–6) | 6 | 1 in 6 |
| 4-digit PIN (0000–9999) | 10,000 | 1 in 10,000 |
| Lottery: 6 numbers from 1–49, no repeats, any order | 13,983,816 | 1 in 13,983,816 |
Repeats are more common than you think
If you allow repeats and draw 10 numbers from 1 to 100, there’s a 37.2% chance that at least two match.
It’s the same effect as the famous birthday problem: in a group of just 23 people, the chance that two share a birthday is just over 50%.
If you need every number to be different, such as raffle winners or a shuffled order, tick No repeats.
Running a Fair Draw or Raffle
- Number the entries first, for example ticket 1 to ticket 250, and write the list down before you draw.
- Set the range to match exactly: minimum 1, maximum 250. A wrong maximum gives some tickets no chance.
- Choose how many winners and tick No repeats so one ticket can’t win twice.
- Draw once, in public if you can, or record the screen. Redrawing until you like the result defeats the point.
- Copy the result with the Copy button and keep it with your entry list.
Everyday Uses
- Classrooms: pick a student, group people into teams, or set random sums for practice.
- Games: replace lost dice, decide who goes first, or flip a virtual coin (0 or 1).
- Research and surveys: choose a random sample from a numbered list.
- Decisions: number your options and let chance pick when you really can’t choose.
For physical-style rolls such as 3d6 or 4d6, try the Dice Roller. To work out the chance of an outcome rather than generate one, use the Probability Calculator.
More Questions
Is an online random number generator truly random?
Computers produce pseudo-random numbers from an algorithm. They pass the statistical tests that matter for games, draws, sampling and teaching, but they shouldn’t be used for cryptographic keys or regulated gambling, which need certified systems.
Does a number become “due” if it hasn’t come up?
No. Each draw is independent, so a number that hasn’t appeared for a while is no more likely next time. Believing otherwise is called the gambler’s fallacy.
Related Calculators
More free tools from our Everyday Calculators collection:
Link to this calculator
Teacher, blogger or student? Share this free Random Number Generator with your readers or class by pasting this code into your website:

About the author
Tahir Mehmood
Tahir Mehmood is the founder of Digital Designs SEO LTD, a UK company, with five years of hands-on experience in SEO, content writing and web development. He builds and maintains the calculators on All in Calculators and keeps them up to date. Spotted an error? Contact us and we will fix it.
Last updated: 27 November 2026