039 - using a while loop to simulate a coin toss.

preview_player
Показать описание
This video use a while loop to simulate a series of coin tosses. NOTE: The if statement is backwards, it shows heads when a 0 it generated. It is exactly backwards but still shows the principle.
Please subscribe to this playlist so you won't miss an episode and check out other Dan on Tech videos.
Рекомендации по теме