Lines Matching defs:sample
10 pick random sample
51 __all__ = ["Random","seed","random","uniform","randint","choice","sample",
290 def sample(self, population, k):
296 samples. This allows raffle winners (the sample) to be partitioned
301 selection in the sample.
303 To choose a sample in a range of integers, use xrange as an argument.
305 large population: sample(xrange(10000000), 60)
320 raise ValueError("sample larger than population")
348 return self.sample(tuple(population), k)
887 sample = _inst.sample