tonniumSign inFree trial

Discovery workshop · Computer science · 4e → 3e · ages 13 to 15

How does a computer draw at random?

A formula that imitates chance, a seed that replays it exactly, and thousands of random points thrown to find π.

  • ⏱ 15 to 20 min
  • 8 missions
  • 3 levels: discover, understand, go further

The short answer

How does a computer pick at random?

It does not really pick at random: it calculates. A program starts from a number, the seed, and applies a rule to make the next number. The sequence looks random, but the same seed and the same rule give the same sequence: these numbers are “pseudo-random”. For secrets such as passwords, other generators are used, designed to stay unpredictable.

With the Family plan

  • They understand what they see in class. Every maths and science idea becomes an experiment they get their hands on.
  • They get going on their own. 15 to 20 min: a hint when they get it wrong, the solution only after three tries.
  • You see what they did. Mission by mission, in your parent space.
Try it free for 7 days

No bank card. Afterwards: €6.90 a month, no commitment · or €49 a year

Cancel online at any time, effective at the end of the paid month. Terms of sale

  1. Your account
  2. Your e-mail confirmed
  3. The course, straight away

The plan opens every course: 244 workshops, 114 modules and 49 labs, from age 9 to university level.

See the plans →
The workshop bench: How does a computer draw at random?

What they will do

  1. 1DiscoverA machine that makes numbers
  2. 2UnderstandFrom the number to the die
  3. 3Go furtherRandom points to find π

8 missions to complete, level by level.

Teacher? A free 2-month trial for your class. Write to us

  • Card payment, on Stripe’s secure page
  • No ads, no data sold
  • Data stored in France