Generate truly random whole numbers or decimals in any range, one or thousands at a time, with or without repeats, sorted or in random order.
Numbers are generated in your browser with the cryptographically secure Web Crypto random source, so every value in the range is equally likely and the results can't be predicted. Nothing is stored.
A random number generator picks numbers at random from any range you choose: one number or thousands, whole numbers or decimals, with or without repeats, in random or sorted order. It uses your browser’s cryptographically secure random source, so every number in the range is equally likely and the results can’t be predicted or repeated.
For example, you can pick a single number from 1 to 100 for a game, draw 6 different numbers from 1 to 49 for a lottery-style draw, shuffle the numbers 1 to 10 into a random order, or generate five decimals between 0 and 1 to three decimal places.
Computers can’t truly flip a coin, so they use random number generators. Most simple programs use a pseudo-random generator: a formula that produces numbers that look random but could, in principle, be predicted if you knew its starting value. This tool instead uses the Web Crypto API built into modern browsers, which draws on unpredictable sources from your device to produce cryptographically secure random numbers. That makes it suitable for fair draws where nobody should be able to predict or influence the result.
For whole numbers, each value from the lowest to the highest has exactly the same chance. When repeats aren’t allowed, the generator shuffles the full set of possible numbers using the Fisher–Yates method and takes the first ones, so every possible combination is equally likely. For decimals, each number is spread evenly across the range and then rounded to the decimal places you choose.
Allowing repeats is like rolling a die several times: the same number can come up again, and each roll is independent. Without repeats is like drawing numbered balls from a bag without putting them back: once a number is drawn, it can’t appear again. Use no repeats for raffles, picking winners or choosing a sample, and allow repeats for dice, simulations or anything where each pick is independent.
You can’t pick more unique numbers than the range contains. There are only 5 whole numbers from 1 to 5, so asking for 6 without repeats isn’t possible, and the generator tells you so.
A random sequence will often contain patterns that look surprising, such as the same number twice in a row or several high numbers together. That’s normal. Over many picks, though, every number appears about equally often. In tests of 6,000 rolls of a virtual six-sided die, each face typically comes up somewhere between about 960 and 1,040 times, close to the expected 1,000. Small differences like this are exactly what genuine randomness produces.
If you pick 10 numbers from 1 to 100 with repeats allowed, there’s about a 37.18% chance that at least two of them will be the same, even though there are 100 possible values. This is the same effect as the famous birthday problem: in a group of just 23 people, there’s a 50.73% chance that two share a birthday. Repeats aren’t a sign that the generator is broken; they’re a natural part of randomness. If repeats would spoil your draw, choose the no-repeats option.
Researchers rely on random numbers to avoid bias. To take a random sample, number everyone in the population, say 1 to 2,000, and generate as many numbers as you need with no repeats; the people with those numbers are your sample. For a randomised experiment, number the participants and generate a shuffled list, then assign the first half to one group and the second half to the other. Because chance alone decides who goes where, differences between the groups at the end are more likely to come from the treatment than from how people were chosen.
To put a list of items into a random order, such as names for a presentation order or songs for a playlist, number the items from 1 to n and generate n numbers from 1 to n with no repeats. The result is a random permutation: the first number tells you which item goes first, the second which goes second, and so on. With 10 items there are 3,628,800 possible orders, and each one is equally likely.
People have used dice, coins and drawing lots for thousands of years. In the 20th century, scientists needed large quantities of random numbers for statistics and simulations, and printed books of random digits were published for the purpose. Today, computers generate random numbers in milliseconds, using either mathematical formulas or physical sources of unpredictability such as electrical noise and timing variations, which is what secure generators like the one used here draw on.
Choose decimals when you need numbers anywhere in a range, not just whole values, such as a random time between 0 and 60 minutes, a test measurement between 9.5 and 10.5, or a probability between 0 and 1 for a simulation. Set the number of decimal places to control precision; with 2 decimal places, each result is rounded to the nearest hundredth.
Two other tools work well alongside this one: the probability calculator, to find the probability of combined events, and the permutation and combination calculator, to calculate permutations and combinations.
Enter 1 as the lowest value and 100 as the highest, set how many numbers to 1 and press Generate.
Yes. Choose whole numbers and select No repeats. Each number in the range can then appear only once.
It uses the browser's cryptographically secure random source, which is unpredictable and gives every number an equal chance.
Yes. For whole numbers, both limits can be chosen. A range of 1 to 6 works like a six-sided die.
Yes. Enter a negative lowest value, and choose Decimals to set the number of decimal places.
Up to 10,000. You can copy the whole list with the Copy numbers button.
Yes. Number your entries, set the range to match, choose no repeats and generate as many winners as you need.
1 in 13,983,816.
Repeats are normal when they're allowed. Picking 10 numbers from 1 to 100 gives about a 37% chance of at least one repeat. Choose No repeats if you need every number to be different.
Number the items from 1 to n, then generate n numbers from 1 to n with no repeats. The order of the numbers is your shuffled order.
Set the range from 1 to 6 with repeats allowed. Set how many numbers to the number of dice you want to roll.
Yes. Number everyone on your list, then generate the sample size you need with no repeats.
No. Numbers are generated in your browser and nothing is stored or sent anywhere.