random.SystemRandom._randbelow

SystemRandom._randbelow(n, _log=<built-in function log>, _int=<type 'int'>, _maxwidth=9007199254740992L, _Method=<type 'instancemethod'>, _BuiltinMethod=<type 'builtin_function_or_method'>)

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.