About Random Number Generator
This random number generator draws between 1 and 200 numbers from any range you type, for example one number from 1 to 10 or six different numbers from 1 to 49. For whole numbers both ends of the range can come up and every value has the same chance. Tick No repeats to draw the way numbered balls leave a bag, so no number appears twice, or leave it off to let each pick be independent like a dice roll. Decimal places can be set from 0 to 6, negative bounds work, and a Summary panel adds up the draw for you. A set of numbers is already drawn when the page opens; press Generate for another.
Settings for common random number picks
Type these values into the fields to get the draw described. Leave Decimal places at 0 unless the row says otherwise.
| What you want | Minimum | Maximum | How many | No repeats |
|---|---|---|---|---|
| One number from 1 to 10 | 1 | 10 | 1 | Off |
| One number from 1 to 60 | 1 | 60 | 1 | Off |
| One number from 1 to 100 | 1 | 100 | 1 | Off |
| Roll one six-sided die | 1 | 6 | 1 | Off |
| Roll two dice (read Sum in the Summary) | 1 | 6 | 2 | Off |
| Heads or tails (1 = heads, 2 = tails) | 1 | 2 | 1 | Off |
| Six different numbers from 49 | 1 | 49 | 6 | On |
| Five different numbers from 69 | 1 | 69 | 5 | On |
| Three 4-digit numbers | 1000 | 9999 | 3 | Off |
| The numbers 1 to 10 in random order | 1 | 10 | 10 | On |
| 20 row numbers to sample from 850 rows | 1 | 850 | 20 | On |
| Five values between 0 and 1 (Decimal places 3) | 0 | 1 | 5 | Off |
To put a whole range in random order, set How many to the size of the range, tick No repeats and leave Sort ascending off.
Example draws and what the Summary shows
These are real draws from the tool. Yours will differ, because every press of Generate starts from a new random starting value.
Six numbers from 1 to 100 (the default settings)
Minimum 1, Maximum 100, How many 6, No repeats off
98, 31, 49, 82, 51, 35. Summary: Count 6, Sum 346, Average 57.67, Lowest 31, Highest 98.
A lottery-style line of 6 from 49
Minimum 1, Maximum 49, How many 6, No repeats on, Sort ascending on
8, 11, 16, 23, 31, 33
With No repeats on, a number can never appear twice in the line.
Two dice
Minimum 1, Maximum 6, How many 2
5, 1. The Summary gives Sum 6, which is the roll.
Shuffle the numbers 1 to 10
Minimum 1, Maximum 10, How many 10, No repeats on, Sort ascending off
6, 10, 7, 9, 5, 3, 1, 2, 4, 8
Every number appears exactly once, so the Sum is always 55.
Decimals between 0 and 1
Minimum 0, Maximum 1, How many 5, Decimal places 3
0.690, 0.773, 0.220, 0.623, 0.085
Negative to positive range
Minimum -10, Maximum 10, How many 5
-7, 3, -4, 4, 2. Summary: Sum -2, Average -0.4.
How likely is a repeat when No repeats is off?
Independent picks repeat more often than most people expect. These are the exact chances that at least two numbers in one draw match.
| Draw | Chance of at least one repeat |
|---|---|
| 3 numbers from 1 to 6 | 44.4% |
| 5 numbers from 1 to 10 | 69.8% |
| 6 numbers from 1 to 100 | 14.2% |
| 10 numbers from 1 to 100 | 37.2% |
| 12 numbers from 1 to 100 | 49.7% |
| 13 numbers from 1 to 100 | 55.7% |
If duplicates would spoil the result, as in a raffle or a sample, tick No repeats.
With repeats or without: which draw do you need?
No repeats off is drawing with replacement. Each number is picked independently, as if the ball went back in the bag, so the same value can come up more than once. Use it for dice rolls, simulated coin tosses, test data and anything where each pick should not depend on the last.
No repeats on is drawing without replacement. Once a number is taken it cannot be taken again in that draw. Use it for raffle tickets, lottery-style lines, picking rows to audit, assigning unique numbers to people, or shuffling a whole range.
The unsorted list is in the order the numbers were drawn, so the first number is a fair first pick, the second a fair second pick and so on. Sort ascending only changes the display order; it does not change which numbers were drawn.
Limits and details worth knowing
- One draw holds 1 to 200 numbers, and Decimal places goes from 0 to 6.
- The maximum must be greater than the minimum. Equal bounds return an error because there is nothing to choose between.
- With Decimal places at 0, fractional bounds are narrowed to the whole numbers between them: 0.5 to 3.5 draws from 1, 2 and 3. Make sure at least one whole number lies inside the range. With Decimal places at 1 or more, fractional bounds are used as typed.
- With decimals, results are rounded to the places you set. The two end values can still appear, but each is about half as likely as the values between them because only half a rounding step leads to them.
- No repeats with decimals compares the rounded values. If the range cannot supply enough different values, the tool asks you to widen it.
- The Summary rounds the sum, average, lowest and highest to at most two decimal places and adds thousands separators, even when the list shows more decimals.
- Each press starts from one of 1,000,000 hidden starting values, so a given group of settings can produce at most a million different draws. That is plenty for games and samples, but fewer than the 13,983,816 possible lines in a 6 from 49 lottery.
- The tool picks from a range, not from your own list. To choose from specific numbers such as 3, 17 and 42, paste them one per line into the Random Choice Picker.
How to get your result
- 1
Type the lowest number allowed in Minimum and the highest in Maximum. The maximum must be larger than the minimum.
- 2
Set How many to the number of values you want in one draw, from 1 to 200.
- 3
Leave Decimal places at 0 for whole numbers, or raise it (up to 6) for values such as 0.690.
- 4
Tick No repeats if every number must be different, and Sort ascending if you want them in order from low to high.
- 5
Press Generate. Read the Numbers list, then the Summary panel for the count, sum, average, lowest and highest.
- 6
Use the copy button on the list, or download it as numbers.txt with one number per line.