random.sample(population, k, *, counts=None) Return a k length list of unique elements chosen from the population sequence or set. Used for random sampling without replacement.