>>> import random >>> my_list = [2,4,6,8,10, 'a', 'b', 'c'] >>> random.sample(my_list, 3) [2, 'b', 4]
タグ: