Random Number Generator – Pick Random Numbers in Any Range
Generate random numbers between any two values. Pick one number or thousands, allow or prevent repeats, choose whole numbers or decimals, and sort the results. The generator uses your browser’s cryptographically secure randomness, so every result is fair.
How to use the random number generator
- Enter the minimum and maximum values. Both are included in the possible results.
- Enter how many numbers you want (up to 10,000).
- Set the decimal places — 0 for whole numbers.
- Tick No repeats if every number must be different.
- Tick Sort the results to list them from smallest to largest.
- Press Generate. Press it again for a new set.
Use Copy to copy the numbers, separated by commas.
How the numbers are generated
The generator asks your browser for secure random values and turns them into numbers in your range. To make sure every number is exactly as likely as every other, it uses rejection sampling: random values that would make some numbers slightly more common are thrown away and redrawn. For “No repeats”, any number already drawn is simply drawn again.
For decimals, the range is multiplied by 10, 100 or more first, then divided back down, so 2 decimal places gives every value like 0.00, 0.01 … 1.00 the same chance.
Ideas for using random numbers
- Raffles and giveaways — number the tickets or entries and draw winners without repeats.
- Games — roll dice (1 to 6), choose who goes first or pick a random challenge.
- Classrooms — pick a student number to answer a question or form random groups.
- Lottery-style picks — for example 6 unique numbers from 1 to 49, sorted.
- Statistics and research — choose a random sample from a numbered list.
- Decisions — can’t choose between options 1 to 4? Let the generator decide.
Examples
| You want | Settings |
|---|---|
| Roll a die | 1 to 6, 1 number |
| Flip a coin | 1 to 2, 1 number (1 = heads) |
| 6 lottery numbers | 1 to 49, 6 numbers, no repeats, sorted |
| A random percentage | 0 to 100, 1 number |
| 10 random decimals | 0 to 1, 10 numbers, 2 decimal places |
Running a fair public draw
If you draw winners in public, decide the rules first: the range, how many winners and whether repeats are allowed. Share your screen or record the draw so entrants can see it happen, and note the time. Drawing a few extra numbers as reserves saves a second draw if a winner can’t be contacted.
Is it fair?
Every number in the range has the same chance of being picked, and previous results never affect the next draw. That means streaks such as the same number twice in a row can and do happen — that’s what real randomness looks like.
For picking from a list of names, try the spin-the-wheel tool. For strong random passwords, use the password generator. To analyse a set of numbers, see the average calculator.
Frequently asked questions
How do I pick a random number between 1 and 100?
Leave the minimum at 1 and the maximum at 100, set “How many” to 1 and press Generate. Every whole number from 1 to 100, including both ends, is equally likely.
Can I generate numbers without repeats?
Yes. Tick “No repeats” and every number in the result will be different — like drawing tickets from a hat. You can’t ask for more unique numbers than there are in the range.
Is this truly random?
It uses crypto.getRandomValues, the same cryptographically secure generator browsers use for security keys, with a method that avoids bias. It is unpredictable and fair for draws, games and sampling.
Can I generate decimal numbers?
Yes. Set the number of decimal places, up to 6. For example, minimum 0, maximum 1 and 2 decimal places gives numbers like 0.37.
Can I use this for a raffle or giveaway?
Yes. Number the entries, set the range to match and generate as many unique numbers as you have prizes. For a draw from a list of names, the spin-the-wheel picker is handy.
Are the numbers stored anywhere?
No. They are generated in your browser and disappear when you close the page.
Related tools
Spin the Wheel
Spin a wheel to pick a random name, winner or choice.Password Generator
Strong random passwords made on your device, with a strength meter.Scientific Calculator
Trig, logs, powers, roots and brackets — with history.Average Calculator
Mean, median, mode, range and sum of a list of numbers.UUID Generator
Generate v4 or v7 UUIDs in bulk with secure randomness.
Last updated: