📜  random.sample python 代码示例

📅  最后修改于: 2022-03-11 14:45:12.358000             🧑  作者: Mango

代码示例6
# returns randomized k values from a list, tuple, set
# import random
import random
# return 10 random values from list my_list
random_values = random.sample(my_list, 10)