1import random
2
3#sampling with replacement
4list = [20, 30, 40, 50 ,60, 70, 80]
5sampling = random.choices(list, k=4)
6print("Randomly selected multiple choices using random.choices() ", sampling)
1import random
2
3numberList = [111,222,333,444,555]
4print("random item from list is: ", random.choice(numberList))