Choosing a random item from a list in Python

You can use random.choice() to choose a random item from a non-empty sequence:

import random
item = random.choice(items)


Reference: random — Generate pseudo-random numbers