Lines Matching refs:randrange
161 self.assertEqual(r.randrange(1000), value)
203 self.assertRaises(UserWarning, self.gen.randrange, 2**60)
247 r = self.gen.randrange(span)
254 start = self.gen.randrange(2 ** (i-2))
255 stop = self.gen.randrange(2 ** i)
258 self.assertTrue(start <= self.gen.randrange(start, stop) < stop)
263 set([self.gen.randrange(start,stop) for i in xrange(100)]))
425 r = self.gen.randrange(span)
432 start = self.gen.randrange(2 ** (i-2))
433 stop = self.gen.randrange(2 ** i)
436 self.assertTrue(start <= self.gen.randrange(start, stop) < stop)
441 set([self.gen.randrange(start,stop) for i in xrange(100)]))
492 x = self.gen.randrange(start, stop, step)