A random sample like this returns list of unique items of sequence. Don’t confuse this with random integers in the range.
>>> import random
>>> random.sample(range(30), 4)
[3, 1, 21, 19]
A random sample like this returns list of unique items of sequence. Don’t confuse this with random integers in the range.
>>> import random
>>> random.sample(range(30), 4)
[3, 1, 21, 19]