Probability of Escape (Gr. 7)

Making a robotic spinner and random number generators to study probability


By scaffolding this challenge into many seemingly unrelated challenges, students are asked to think laterally about applying their knowledge to an interesting solution involving escape and probability.

The evil zBot has captured mBot and he needs your help! Use probability to help him escape with the best chance of success!

Overall Curriculum Learning Goals

  • Probability (Lesson Focus)

Overall Coding Learning Goals

  • Sequencing
  • If Statements
  • Loops
  • Variables
  • Random Number Generation

Educational Standards

• Grade 7 Mathematics – Probability and Data Management

British Columbia
• Grade 7 Mathematics – Statistics and Probability


  • Grade 7 Mathematics - Statistics and Probability

Lesson Procedure

  • Class 1 - Intro to mBlock and Spinning at Random Intervals (~30min)
  • Class 2 - If Statements and Counting Loops(~20min)
  • Class 3 - Probability and Final Challenge (~30min)

Robots and Accessories

  • mBots

Other Supplies

  • Laptops
  • mBlock Software
  • Masking tape and Worksheets (provided)

Find Out More


mbot is the best of both worlds, transitioning students from Scratch Blocks to Text Code