← All blog posts

How to use the Random Number Generator — step by step

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

The Random Number Generator opens with numbers already filled in: a minimum of 1, a maximum of 10, and a count of 5. Press Generate numbers and it gives you five numbers, each between 1 and 10 inclusive — a possible set is 3, 7, 1, 10, 4, though every press gives a different set. There is nothing to install and no account to create, and the five steps below take you from that starting point to a set of numbers you can use.

At a glance

Default: 5 numbers from 1 to 105 numbers picked10 values to pick fromEach number has a 1 in 10 chance
The tool opens with a minimum of 1, a maximum of 10, and a count of 5.

Step 1: open the tool and look at the starting result

The count box shows 5, the minimum shows 1 and the maximum shows 10, so the tool is ready before you touch anything. The result panel reads “5 numbers” at the top, with the five numbers listed as chips underneath, plus two smaller lines: the smallest and the largest of the set. With the example set 3, 7, 1, 10, 4, the smallest is 1 and the largest is 10, which is a quick check that every number sits inside the range you set.

Step 2: set the minimum

Type a number from 0 to 1,000 in the minimum box, or move the slider beside it; both change the same value, and the result updates as you type. The default minimum is 1, which suits dice, raffles and lists that start at 1. If your list starts at 0, type 0: a range of 0 to 10 has 11 possible values, not 10, because both ends count.

Step 3: set the maximum

Type a number from 0 to 1,000 in the maximum box, or move its slider. The default maximum is 10, so the default range holds 10 whole numbers, from 1 to 10 inclusive, and each one has a 1 in 10 chance, or 10%, on every pick. If you type a minimum above the maximum by mistake, the tool swaps the two ends quietly, so you still get numbers inside the range you meant.

Step 4: choose how many numbers

Type a number from 1 to 20 in the “How many numbers” box, or move its slider. The default is 5, which is enough for a short draw or a quick pick. Twenty is the most the tool gives in one press; if you need more than 20, press Generate again and add the two sets together.

Step 5: press Generate numbers and read the result

Press the Generate numbers button and the result panel fills in at once: the big line reads the count, such as “5 numbers”, the chips show the set, and the two smaller lines give the smallest and the largest. Every press is a fresh set, picked with the browser’s cryptographic random source, crypto.getRandomValues, so no pattern carries over from the last set. Press it as many times as you like; each press costs nothing and takes a second.

Worked example

Start from the defaults and ask for a dice roll instead: set the minimum to 1, the maximum to 6 and the count to 1, then press Generate. You get one number from 1 to 6, and each face has a 1 in 6 chance, or 16.67%. Now set the count back to 5 and the maximum to 100: you get five numbers, each between 1 and 100, and each whole number in that range has a 1 in 100 chance, or 1%.

The common mistake

People press Generate, see a repeated number such as 7 twice in one set, and assume something went wrong. Nothing has: each pick is independent, so the same number can come up more than once, and with 5 picks from only 10 values, 69.76% of sets contain at least one repeat. A repeat is normal, not a fault, and re-rolling until the numbers “look random” only biases the result.

Frequently asked questions

What numbers does the Random Number Generator show when it opens?

Five numbers, each between 1 and 10 inclusive. The minimum shows 1, the maximum shows 10, and the count shows 5.

How do I generate a single number from 1 to 6?

Set the minimum to 1, the maximum to 6 and the count to 1, then press Generate numbers. Each face has a 1 in 6 chance, or 16.67%.

What is the largest count the tool gives in one press?

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

Can the same number appear twice in one set?

Yes. Each pick is independent, so repeats are allowed, and 69.76% of 5-number sets from 1 to 10 contain at least one repeat.

More guides on the Random Number Generator

Try it yourself

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

Open the Random Number Generator