Y
Hacker News
new
|
ask
|
show
|
jobs
by
IThinkImOKAY
1997 days ago
the `random` package is one my favorites. I like getting a random string from a list:
strings = ['uno', 'dos', 'tres'] print(random.choice(strings))