how to grab a random value from a list] code example
Example 1: pick a random number from a list in python
import random
numberList = [1,2,3,4,5]
print(random.choice(numberList)) # Prints a random number from the list
Example 2: python how to randomly choose an item from a list
import random
nums = ['a', 'b', 'c', 'd', 'e']
print(random.choice(nums))