diff --git a/Lib/random.py b/Lib/random.py --- a/Lib/random.py +++ b/Lib/random.py @@ -276,6 +276,7 @@ class Random(_random.Random): # pick an element in x[:i+1] with which to exchange x[i] j = _int(random() * (i+1)) x[i], x[j] = x[j], x[i] + return x def sample(self, population, k): """Chooses k unique random elements from a population sequence or set.