Use this free random number generator to pick one or many random numbers between any two values. Enter a minimum and a maximum, choose how many numbers you want, and click generate. You can choose whole numbers or decimals, allow or block repeats, and sort the results. It also includes a dice roller and a coin flip. No signup needed.
For dice, choose the number of dice and the number of sides. For a coin flip, choose the number of flips.
A random number is a number chosen so that you cannot predict it, and where each allowed number is equally likely. In a range from 1 to 100, every whole number has a 1 in 100 chance, or 1%, each time. Random numbers are used for games, giveaways, choosing people for a task, picking samples for research, and making fair decisions.
There are two main kinds:
Modern web browsers also provide a stronger, cryptographically secure source of random values that is suitable for more demanding uses. Our calculator [uses a standard browser random function / uses the browser’s secure random source — update to match your tool].
Random whole number between min and max (inclusive):
Number = min + floor(random × (max − min + 1)), where “random” is a value from 0 up to (but not including) 1
Random decimal between min and max:
Number = min + random × (max − min)
Number of values in a range = max − min + 1
Chance of a specific number = 1 ÷ (number of values in the range)
Average of a range of whole numbers = (min + max) ÷ 2
Number of ways to choose k from n (order does not matter) = n! ÷ (k! × (n − k)!)
You pick 5 random numbers from 1 to 10, and repeats are allowed.
Seeing a repeat does not mean the generator is broken. If you do not want repeats, turn them off.
You draw 5 unique numbers from 1 to 50.
You pick 6 unique numbers from 1 to 49.
A random generator does not improve your odds in a lottery. Every combination is equally likely, including 1-2-3-4-5-6. Play responsibly, if you play.
After a run of heads, the next flip is still 50/50. Past results do not change the odds.
You have 20 entries in a giveaway and pick 1 winner by choosing a random number from 1 to 20.
In a group of 23 people, the chance that at least two share a birthday is about 50.7%. This is the “birthday problem,” and it shows that coincidences are more common than most people expect.
A 4-digit code from 0000 to 9999 has 10,000 possible values.
Most use a math formula that produces numbers that look random (pseudorandom numbers). Some use physical sources of unpredictability, such as electronic noise, for true randomness.
It is pseudorandom, which is suitable for games, drawings, and everyday choices. It is not designed for gambling, security keys, or other uses that need cryptographic strength. [Update this answer to match the method your tool uses.]
Pseudorandom numbers come from a formula and a starting seed. True random numbers come from physical processes. For most everyday uses, the difference does not matter.
Enter 1 as the minimum and 100 as the maximum, and click Generate. Each whole number has a 1% chance.
Turn off the “allow repeats” option. Then each number can appear only once, and your range must contain at least as many numbers as you ask for.
When repeats are allowed, duplicates are normal. Picking 5 numbers from 1 to 10 gives at least one repeat about 70% of the time.
It can pick a set of numbers, but it does not improve your odds. Every combination is equally likely.
For informal giveaways, yes. Number the entries in a fixed list, draw one number, and keep a record. For regulated or high-value contests, follow your local rules.
No. Use a password manager or a tool built to create secure passwords.
1 divided by the number of values in the range. In 1 to 100, it is 1 in 100, or 1%.
Both the minimum and the maximum can be picked. A range of 1 to 10 includes 1 and 10.
Yes. It is free, with no registration and no limits.
A few of the most-used tools in each hub.
This random number generator is for general entertainment and everyday use. It is not suitable for gambling, regulated drawings, security keys, or other uses that require certified or cryptographically secure randomness. Follow your local laws and rules for contests and drawings.