Skip to content

random

Random choice with replacement

random.choice(iterable)
Shuffle elements of an iterable in-place [FP:42]
random.shuffle(iterable)