9 Dial-a-Curse: Generating random insults from lists of words
“He or she is a slimy-sided, frog-mouthed, silt-eating slug with the brains of a turtle.”
--Dial-A-Curse
Random events are at the heart of interesting games and puzzles. Humans quickly grow bored of things that are always the same. I think one reason people may choose to have pets and children is to inject some randomness into their lives. Let’s learn how to make our programs more interesting by having them behave differently each time they are run. |
This exercise will show you how to randomly select one or more elements from lists of options. To explore randomness, we’ll create ...
Get Tiny Python Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.