Lines Matching refs:_int
177 def randrange(self, start, stop=None, step=1, _int=int, _maxwidth=1L<<BPF): argument
187 istart = _int(start)
194 return _int(self.random() * istart)
198 istop = _int(stop)
217 return _int(istart + self._randbelow(width))
218 return _int(istart + _int(self.random()*width))
223 istep = _int(step)
238 return istart + istep*_int(self.random() * n)
246 def _randbelow(self, n, _log=_log, _int=int, _maxwidth=1L<<BPF, argument
263 k = _int(1.00001 + _log(n-1, 2.0)) # 2**k > n-1 > 2**(k-2)
271 return _int(self.random() * n)
289 _int = int
292 j = _int(random() * (i+1))
327 _int = int
337 j = _int(random() * (n-i))
345 j = _int(random() * n)
347 j = _int(random() * n)