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.

No problems detected

How to read it

LinesWhat they do
repeat 6 timesDoes everything inside it 6 times
repeat 10 timesInside that, does the roll 10 times
@roll is a random number from 1 to 6Rolls the dice
if @roll is 6Checks for a six
@sixes goes up by 1Counts it

How many rolls?

A repeat inside a repeat is a times sum.

The outside repeatThe inside repeatThe sumRolls
6 times10 times6 × 1060

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.

RunSixes out of 60
1
2
3
4
5

This section ticks itself when you press Run.

Press Play in the code box to finish this section.