How to get an accurate result from the Random Number Generator
An accurate result from the Random Number Generator comes from two habits: setting the range to match the job, and checking the result against the range before you use it. The tool already uses exact arithmetic and the browser’s cryptographic random source, crypto.getRandomValues, so most accuracy problems come from a range that is off by one, or from reading the result as if repeats were errors.
At a glance
Set the range to match the job
The range is inclusive, so both ends count: 1 to 10 holds 10 values, 1 to 6 holds 6, and 1 to 100 holds 100. A dice needs 1 to 6, a raffle of 100 tickets needs 1 to 100, and a list of 30 students needs 1 to 30, with each student holding a 1 in 30 chance, or 3.33%. If the range is off by one, every chance is wrong: 1 to 99 is 99 values, not 100, so a ticket in it has a 1 in 99 chance, not 1 in 100.
Check the smallest and largest
After every press, read the two smaller lines under the set: the smallest and the largest. With the default range of 1 to 10, the smallest can never be below 1 and the largest can never be above 10, so a smallest of 1 and a largest of 10, as in the example set 3, 7, 1, 10, 4, is a pass. If either line falls outside the range you set, the setting is wrong, because the tool never picks outside the range.
Count the set before you use it
The big line reads the count, such as “5 numbers”, and the chips show the set itself. Count the chips: five numbers means five chips, and twenty means twenty. The count runs from 1 to 20, so if you asked for 20 and see fewer chips, press Generate again. The count is the one figure that is easy to check at a glance, and it is the one people most often skip.
Repeats are not errors
A set with a number twice is not a wrong result. Each pick is independent, so repeats are allowed, and with 5 picks from 10 values, 69.76% of sets contain at least one repeat. A sharper check is the chance that one exact value appears: in five picks from 1 to 10, the number 7 appears at least once in 40.95% of sets. If you re-roll until no number repeats, you are no longer drawing at random: you are filtering the result, and the odds you quote afterwards will be wrong.
Worked check: twenty picks from 1 to 10
Set the count to 20 and the range to 1 to 10, then press Generate. Count how many times 7 appears: on average it appears twice, and it appears at least once in 87.84% of sets. Check that every number sits between 1 and 10, using the smallest and largest lines, and count the chips to confirm there are 20. This thirty-second check is worth doing the first time you use the tool, so you trust the totals afterwards.
The common mistake
People press Generate several times and keep the set that “looks most random”, usually the one with no repeats and a wide spread. That set is the least typical one: only 30.24% of 5-number sets from 1 to 10 have all five numbers different. Picking the prettiest set throws away the randomness you asked for, so accept the first set the tool gives you, and check it against the range instead of against how it looks.
Frequently asked questions
How do I know my random numbers are accurate?
Check the smallest and largest lines: every number must sit between the minimum and maximum you set, and the chip count must match the count you asked for.
What is the chance that 7 appears in five picks from 1 to 10?
40.95%. The number 7 appears at least once in 40.95% of 5-number sets from 1 to 10.
Are repeated numbers a sign of an error?
No. Each pick is independent, so repeats are allowed, and 69.76% of 5-number sets from 1 to 10 contain at least one repeat.
How many values are in the range 1 to 30?
30 whole numbers, from 1 to 30 inclusive, so each one has a 1 in 30 chance, or 3.33%.
More guides on the Random Number Generator
- How to use the Random Number Generator — step by step
- Random Number Generator explained with worked examples
- Random Number Generator formula — how it actually works
- Random Number Generator for beginners — start here
- Common mistakes people make with the Random Number Generator
- Random Number Generator vs doing it by hand — which is faster?
- Random Number Generator — the complete guide
- Random Number Generator for students — with examples
- Random Number Generator for homeowners and DIYers
Try the Random Number Generator — free, in your browser.