This question already has an answer here:
- How to randomly select an item from a list? 15 answers
The first examples that I googled didn't work. This should be trivial, right?
This question already has an answer here:
The first examples that I googled didn't work. This should be trivial, right?
import random
random.choice (mylist)
import random
random.choice([1, 2, 3])