randomly select from array python code example
Example 1: how to randomly choose from a list python
random.choice(name of list)
Example 2: 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