import random numberList = [111,222,333,444,555] print("random item from list is: ", random.choice(numberList))
np.random.choice(5, 3, replace=False, p=[0.1, 0, 0.3, 0.6, 0]) array([2, 3, 0]) # random