← All blog posts

Common mistakes people make with the Random Number Generator

WhiteUI · A plain-English guide to the Random Number Generator

Most wrong results from the Random Number Generator are not faults in the tool. They are small slips: expecting numbers never to repeat, counting the range wrong, or asking for more numbers than the tool gives in one press. The tool itself uses exact arithmetic, so when a result looks wrong, the setting is usually the cause, and each of the five mistakes below has a quick fix.

At a glance

5 numbers from 1 to 10: repeats are normal69.76% have a repeat30.24% all different5 picks from 10 values
With 5 picks from 10 values, 69.76% of sets contain at least one repeat, so a repeated number is normal.

Mistake 1: expecting no repeats

The most common slip is seeing a number twice in one set and assuming the tool is broken. It is not: each pick is independent, so the same number can come up more than once. With 5 picks from 10 values, 69.76% of sets contain at least one repeat, and only 30.24% have all five numbers different. A repeat is the usual outcome, not the exception, and re-rolling until the numbers look different only biases the result.

Mistake 2: counting the range wrong

People subtract to count the values and forget to add 1 back: 10 minus 1 is 9, but the range from 1 to 10 holds 10 whole numbers, because both ends count. The same slip makes 1 to 6 look like 5 values when a dice has 6 faces, and 0 to 10 look like 10 when it is 11. The rule is maximum minus minimum plus 1, and the chance for any one number is 1 divided by that count.

Mistake 3: entering the ends backwards

People sometimes type the larger number in the minimum box and the smaller one in the maximum box, then wonder why the result looks odd. The tool handles this one for you: if the minimum is above the maximum, the two ends are swapped quietly, so you still get numbers inside the range you meant. Check the two boxes before you press Generate, and the swap will never surprise you.

Mistake 4: expecting the same set twice

People press Generate, like the set they got, and expect to see it again. The chance of the same five numbers coming up in the same order is 1 in 100,000, because each of the five picks has a 1 in 10 chance of landing on one exact value. The tool uses crypto.getRandomValues, so no pattern carries over from the last set, and there is no way to get a set back once you have pressed Generate again.

Mistake 5: asking for more than 20 numbers

The count box runs from 1 to 20, and 20 is the most the tool gives in one press. If you type 50, the tool will not give you 50: the count is capped at 20. When you need more numbers than that, press Generate, note the set, and press it again. The minimum and maximum run from 0 to 1,000, so the widest range holds 1,001 values, and any one number in it has a 1 in 1,001 chance, or about 0.1%.

Worked check

Check any answer against the anchor: the default range of 1 to 10 holds 10 values, and each has a 10% chance. Generate five numbers and check that every one sits between 1 and 10 inclusive, using the smallest and largest lines: with the example set 3, 7, 1, 10, 4, the smallest is 1 and the largest is 10. If a number ever falls outside the range you set, the setting is wrong, because the tool never picks outside the range.

Frequently asked questions

What is the most common random number generator mistake?

Expecting numbers never to repeat. With 5 picks from 10 values, 69.76% of sets contain at least one repeat, which is normal.

How many values are in the range 1 to 10?

10 whole numbers, from 1 to 10 inclusive. The rule is maximum minus minimum plus 1, and each value has a 10% chance.

What happens if I enter the minimum above the maximum?

The tool swaps the two ends quietly, so you still get numbers inside the range you meant.

How many numbers can the tool generate at once?

20. The count runs from 1 to 20, and the minimum and maximum run from 0 to 1,000.

More guides on the Random Number Generator

Try it yourself

Try the Random Number Generator — free, in your browser.

Open the Random Number Generator