Skip to content

Random Number Generator: Pick Numbers in Any Range

Set a minimum, a maximum and how many numbers you want. Each press of Generate draws a fresh set, with or without repeats, and shows the sum and average of the draw.

Runs in your browserFree, no sign-upLast reviewed

Settings

Fill in the settings to see your result here.

Your result appears here instantly — nothing is uploaded.

Quick answers

How do I pick a random number between 1 and 100?
Set Minimum to 1, Maximum to 100 and How many to 1, then press Generate. Every whole number from 1 to 100 has the same 1 in 100 chance, and both 1 and 100 can be drawn. Press Generate again for a new pick.
Are the minimum and maximum included?
Yes. With Decimal places at 0, both end numbers can be drawn and are exactly as likely as any number in between. A range of 1 to 6 gives six possible results, the same as a die.
How do I generate random numbers with no repeats?
Tick No repeats before pressing Generate. Each number can then appear only once in the draw. The range must hold at least as many whole numbers as you ask for: 6 from 1 to 49 works, 6 from 1 to 5 returns an error.
How many random numbers can I generate at once?
Up to 200 per draw. Set How many to any value from 1 to 200. Asking for more returns the message "Choose a count between 1 and 200." For a longer list, press Generate again and combine the results.
Can it generate random decimal numbers?
Yes. Set Decimal places to between 1 and 6. A range of 0 to 1 with 3 decimal places gives values such as 0.690, 0.773 and 0.220. Results are rounded to the places you choose and keep their trailing zeros.
Is a computer random number truly random?
No. Like almost every browser tool, this one uses a pseudo-random algorithm: a formula that produces numbers with no usable pattern from a starting value chosen at each press. That is fine for games, samples and informal draws, but not for passwords, cryptography or regulated lotteries.

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 wantMinimumMaximumHow manyNo repeats
One number from 1 to 101101Off
One number from 1 to 601601Off
One number from 1 to 10011001Off
Roll one six-sided die161Off
Roll two dice (read Sum in the Summary)162Off
Heads or tails (1 = heads, 2 = tails)121Off
Six different numbers from 491496On
Five different numbers from 691695On
Three 4-digit numbers100099993Off
The numbers 1 to 10 in random order11010On
20 row numbers to sample from 850 rows185020On
Five values between 0 and 1 (Decimal places 3)015Off

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.

DrawChance of at least one repeat
3 numbers from 1 to 644.4%
5 numbers from 1 to 1069.8%
6 numbers from 1 to 10014.2%
10 numbers from 1 to 10037.2%
12 numbers from 1 to 10049.7%
13 numbers from 1 to 10055.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. 1

    Type the lowest number allowed in Minimum and the highest in Maximum. The maximum must be larger than the minimum.

  2. 2

    Set How many to the number of values you want in one draw, from 1 to 200.

  3. 3

    Leave Decimal places at 0 for whole numbers, or raise it (up to 6) for values such as 0.690.

  4. 4

    Tick No repeats if every number must be different, and Sort ascending if you want them in order from low to high.

  5. 5

    Press Generate. Read the Numbers list, then the Summary panel for the count, sum, average, lowest and highest.

  6. 6

    Use the copy button on the list, or download it as numbers.txt with one number per line.

Answers to common questions

Can I use this to pick lottery numbers?
You can use it for a quick pick: set the range to the game's numbers, How many to the numbers per line and tick No repeats. A 6 from 49 game has 13,983,816 possible lines and a random line is as likely to win as any other. For games with a separate bonus ball, run a second draw with that ball's range.
Is it fair enough for a raffle or giveaway?
For an informal draw among friends, a class or a small community, yes: every number in the range has the same chance. It is not an audited or certified draw, and nobody else can verify the result afterwards, so do not rely on it where prize rules or regulations require a recorded, independently checkable draw.
Why did I get the same number twice?
Because No repeats was off. Independent picks often collide: six numbers from 1 to 100 contain a duplicate about 14% of the time, and five numbers from 1 to 10 do so about 70% of the time. Tick No repeats and press Generate again for all-different numbers.
How do I pick a random number from 1 to 60?
Enter 1 as the Minimum, 60 as the Maximum and 1 in How many, then press Generate. One real draw with those settings returned 37. Each of the 60 numbers has a 1 in 60 chance on every press.
Can it generate negative numbers?
Yes. Type a negative Minimum, such as -10, with any larger Maximum. A draw of five numbers from -10 to 10 returned -7, 3, -4, 4 and 2. Zero is part of that range and can be drawn like any other value.
Can I get the same set of numbers back later?
No. Each press of Generate uses a new random starting value that is not shown, so a draw cannot be replayed. Copy the list or download numbers.txt before you press Generate again if you need to keep a result.
Does the generator send my numbers anywhere?
No. The draw runs in your browser with a small script, and the range, the count and the results are not uploaded. It also means the tool keeps working if your connection drops after the page has loaded.
What is the difference between this and a dice roller or coin flip?
A range of 1 to 6 behaves like a die and 1 to 2 like a coin, so this tool covers both. The dedicated Dice Roller and Coin Flip tools on this site are quicker when you want d4 to d100 dice or a tally of heads and tails instead of plain numbers.

Looking for something else? Browse all generators or see every tool.