Grade 8 · Capstone Lab
Probability Lab: 1000 Rolls of the Die
Roll a virtual die and watch experimental probability approach the theoretical 1⁄6 in real time.
Total rolls
0
Last roll
—
Theoretical P
16.67%
Progress
0%
Live results
Theoretical 1⁄6 line—
0
1
—
0
2
—
0
3
—
0
4
—
0
5
—
0
6
Too few rolls — bars swing wildly. Keep rolling.
The MAC bridge
M
Mathematics
P(face) = 1 / 6 = 16.67%
A
Algorithm
repeat N: roll → counts[roll] += 1
C
Code
pick random 1..6 · add to list