Dice Thrower

Step 8 – what are the chances?

We know that it's much more likely that you'll get a 6, 7, or 8 when rolling two six sided dice. There's a 16/36 chance – nearly 50%.

But can we test this?

Computers are really good at doing jobs like this really quickly. We can get Python to generate 100 rolls of 2d6. Or 1000. Or 10000.

  1. Start a new Python program
  2. Use the code in the screenshot
  3. Watch the idents and brackets
  4. Save your program
  5. Run the program to check that it works
  6. Run your program a few times
  7. Change the number of dice rolls – this means changing the (0, 100) to be (o, 1000) etc...

Code helper image

You can check how well you matched the probabilities here:

PDF iconDice probabilities (opens in a new tab)