Return a random int in the range [0,n) Handles the case where n has more bits than returned by a single call to the underlying generator.
(self, n, _log=_log, _int=int, _maxwidth=1L<<BPF,
_Method=_MethodType, _BuiltinMethod=_BuiltinMethodType)