1import random
2
3list = ["Item 1", "Item 2", "Item 3"] # List
4item = random.choice(list) # Chooses from list
5print(item) # Prints choice
6
7# From stackoverflow
8# Tried and tested method
1import random
2list = [20, 30, 40, 50 ,60, 70, 80]
3sampling = random.choices(list, k=4) # Choices with repetition
4sampling = random.sample(list, k=4) # Choices without repetition