1import random
2
3# there are 2 ways for this
4listofnum = [1, 2, 3, 4, 5]
5# 1
6print(random.choice(listofnum))
7
8# 2
9random.shuffle(listofnum)
10print(listofnum)
1import random
2
3numberList = [1,2,3,4,5]
4print(random.choice(numberList)) # Prints a random number from the list