Home | History | Annotate | Download | only in python2.7

Lines Matching refs:randrange

52            "randrange","shuffle","normalvariate","lognormvariate",
84 Optionally, implement a getrandbits() method so that randrange() can cover
173 def randrange(self, start, stop=None, step=1, int=int, default=None,
186 raise ValueError, "non-integer arg 1 for randrange()"
192 raise ValueError, "empty range for randrange()"
197 raise ValueError, "non-integer stop for randrange()"
209 # can return a long, and then randrange() would also return
217 raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop, width)
222 raise ValueError, "non-integer step for randrange()"
228 raise ValueError, "zero step for randrange()"
231 raise ValueError, "empty range for randrange()"
241 return self.randrange(a, b+1)
886 randrange = _inst.randrange