← All blog posts

Random Number Generator for students — with examples

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

School maths gets easier when you can test it: roll a dice ten times, draw a name from a class list, and count how often each number comes up. The Random Number Generator does the drawing for you in a second, and the examples below use the same numbers your coursework will, so you can check your own results against them.

At a glance

A dice roll: 1 to 61 in 65 in 6Each face: 16.67% chance
On a dice roll from 1 to 6, each face has a 1 in 6 chance, or 16.67%.

Example 1: a dice roll for a game

A board game needs a dice, so 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%. Roll ten times by pressing Generate ten times and write the numbers down: you will not get each face the same number of times, because chance does not even itself out over ten rolls, and that uneven result is itself the lesson.

Example 2: picking a student from a class of 30

Number the class list from 1 to 30, set the minimum to 1, the maximum to 30 and the count to 1, then press Generate. The number you get picks the student, and each student has a 1 in 30 chance, or 3.33%, of being picked. The pick is fair because every number in the range is equally likely, and the teacher cannot be accused of favouring anyone: the tool chose, not the teacher.

Example 3: a probability lesson, five numbers from 1 to 10

Set the minimum to 1, the maximum to 10 and the count to 5, then press Generate. The range holds 10 values, so each number has a 1 in 10 chance, or 10%, on every pick. Ask the class a question first: how often will all five numbers be different? The answer is 30.24%, so most sets contain a repeat. Generate a few sets and count how many have a repeat: about seven in ten will, which matches the 69.76% figure.

Counting values in a range

The count of values in a range is maximum minus minimum plus 1. From 1 to 10 there are 10 values, from 1 to 6 there are 6, and from 1 to 30 there are 30. The chance for any one value is 1 divided by that count: 10% for 1 to 10, 16.67% for 1 to 6, and 3.33% for 1 to 30. Write the rule down, maximum minus minimum plus 1, and most classroom questions about random numbers answer themselves.

What the tool cannot do for homework

The tool picks numbers; it does not do the thinking for you. It will not tell you the chance of an event, work out a probability, or check your answer. Use it to generate the numbers, then work out the odds yourself with the range rule, and use the smallest and largest lines to check that every number sits inside the range you set.

The common mistake

Students sometimes assume that random means evenly spread, so a set such as 3, 7, 1, 10, 4 looks wrong because the numbers cluster at the ends. It is not wrong: each pick is independent, and clustering happens by chance. With 5 picks from 10 values, only 30.24% of sets have all five numbers different, so a set with a repeat, or with two numbers close together, is the usual result, not a faulty one.

Frequently asked questions

How do I roll a dice for a classroom game?

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%.

How do I pick one student from a class of 30?

Number the list from 1 to 30, set the range to 1 to 30 and the count to 1. Each student has a 1 in 30 chance, or 3.33%.

How often are all five numbers different in a set from 1 to 10?

30.24% of the time. Most sets contain a repeat, and 69.76% have at least one repeated number.

How many values are in the range 1 to 30?

30 whole numbers, from 1 to 30 inclusive. The rule is maximum minus minimum plus 1.

More guides on the Random Number Generator

Try it yourself

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

Open the Random Number Generator