This exercise will show you how to randomly select one or more elements from lists of options. To explore randomness, we’ll create a program called abuse.py that will insult the user by randomly selecting adjectives and nouns to create slanderous epithets.
In order to test randomness, though, we need to control it. It turns out that “random” events on computers are rarely truly random but only pseudo-random, which means we can control them by using a “seed.”1 Each time you use the same seed, you will get the same “random” choices!