Percents are chances too

Try itChance

There is a second way to write a chance: as a percent. You met percents in chapter 3. A 30% chance means 30 times out of 100.

No problems detected

How many tries?

The outside repeatThe inside repeatThe sumTries
5 times20 times5 × 20100

With 100 tries, the sum is easy: a 30% chance should hit about 30 times.

Run it

Press Run a few times. The answers gather round 30.

The same chance, two ways

Some chances can be written both ways.

As "1 in"As a percentWhy
1 in 250%Half of 100 is 50
1 in 425%A quarter of 100 is 25
1 in 1010%A tenth of 100 is 10
1 in 520%A fifth of 100 is 20

To turn "1 in" into a percent, share 100 by the number. 100 ÷ 4 is 25, so 1 in 4 is 25%.

Try it

Change 30% in the script, press Run, and see if the answer is near your prediction.

Change it toYou expect about
50%?
10%?
75%?

This section ticks itself when you press Run.

Press Play in the code box to finish this section.