Roll a dice 60 times
Try itChance
Watching a slime 12 times is slow. A script can try something 60 times in a blink. This one rolls a dice 60 times and counts the sixes.
How to read it
| Lines | What they do |
|---|---|
repeat 6 times | Does everything inside it 6 times |
repeat 10 times | Inside that, does the roll 10 times |
@roll is a random number from 1 to 6 | Rolls the dice |
if @roll is 6 | Checks for a six |
@sixes goes up by 1 | Counts it |
How many rolls?
A repeat inside a repeat is a times sum.
| The outside repeat | The inside repeat | The sum | Rolls |
|---|---|---|---|
| 6 times | 10 times | 6 × 10 | 60 |
Predict, then run
A dice has 6 sides, so a six is a 1 in 6 chance. How many sixes do you expect in 60 rolls? Share 60 by 6.
Write your prediction down. Then press Run and read the log.
Run it again
Press Stop, then Run. Do it five times, and write down each answer.
| Run | Sixes out of 60 |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |
This section ticks itself when you press Run.

