So much around us happens randomly. How can Dash and Dot simulate random events when they have to follow a strict algorithm? In this lesson, students will learn how random variables can be utilized in computer programs.

- Understand what random variables are and when to use them
- Write a program that uses a random variable
- Find measures of center for a set of data and use them to describe the data

- Grade 4 - Mathematics, Data Management & Probability: Frequency of Outcomes, Collect, Graph, Interpret Primary Data, Median

- Grade 5 - Mathematics, Data Management & Probability: Frequency of Outcomes, Collect, Graph, Interpret Primary Data, Mean

**British Columbia**

- Grade 4 - Mathematics, Probability, ADST
- Grade 5 - Mathematics, Probability, ADST

**Alberta**

- Grade 6 - Mathematics, Chance and Uncertainty, ICT, Foundational Operations, Knowledge and Concepts

- Class 1: Low Tech Magic 8 Ball (20 minutes)
- Class 2: Magic Dot Ball (20 minutes)
- Class 3: Programming Challenge (30 minutes)

**
**

**
**

- Tablets - See Tablet Compatibility
- Magic 8 Ball Recording Sheet print-outs
- Random Data Recording Sheet print-outs
- Large paper for each group to draw or print a spinner

*Open their eyes to how the world works, coding ideas into adventures.*

**Buy Dash and Dot****Free Apps for Apple and Android****Tablet Compatibility****View All Lessons****Subscribe for Premium Co-Curricular Lessons****Start a Robotics Coding Club****Register for the Worldwide Robotics Competition**