Skip to content

Randomness and simulation

Handout

What we'll do

  • Some programs need chance, like games or experiments.
  • Python can make random numbers for us.
  • We will also build a tiny simulation (a model of something real).

Ten simulated dice rolls with the sixes highlighted; counting them estimates the chance

Handout

Log in or create account

IGCSE & A-Level