Shuffling a List
Random Sampling from a List
Flipping a Coin
Magic 8 Ball
Here is a list with its replies.
replies = ["As I see it, yes.", "Ask again later.", "Better not tell you now.", "Cannot predict now.", "Concentrate and ask again.", "Don't count on it.", "It is certain.", "It is decidedly so."]
Generating Pseudorandom Integers
Roll a pair of dice. Roll an exotic die from an RPG, say 20-sided
Generating Uniform Variates
Here are some other iterables.
We will do tons of examples.
enumerate
and reversed
are very handy
for altering the behavior of iterators.