Middle School / STEM

Random Number Cube

Students will create a program, using the //code.Node motion sensor, to mimic a number cube. Additionally, students will use basic probability concepts to determine the probability of events related to the number cube.


Student Files

ECoding_2_Random_Number_S.docx 198.82 KB
ECoding_2_Random_Number_S.pdf 236.87 KB

Teacher Files

Sign In to your PASCO account to access teacher files and sample data.

Featured Equipment



The //code.Node has six interactive sensors and four device outputs that measure and respond to phenomena using code created in SPARKvue or Capstone software.

Many lab activities can be conducted with our Wireless, PASPORT, or even ScienceWorkshop sensors and equipment. For assistance with substituting compatible instruments, contact PASCO Technical Support. We're here to help.

Copyright Disclaimer: Section 107 of the Copyright Act of 1976 makes allowance for “fair use” for purposes of teaching, scholarship, education and research. Reproduction under any other circumstances, without the written consent of PASCO, is prohibited.
Source: Lab #02

Essential Coding to Learn Teacher's Manual

Random Number Cube