The random.sample() method Return a ‘k’ length list of unique elements chosen from the population sequence. Used for random sampling without replacement. You can see the code below:-
import random
c = list(range(0, 15))
print(c)
random.sample(c, 5)
To know more about this you can have a look at the following video tutorial:-