You are here : python_3randomrandomsample

random.sample() - random

Return a k length list of unique elements chosen from the population sequence
or set. Used for random sampling without replacement.


Syntax

random.sample(population, k)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference