MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _randbelow

Method _randbelow

Lib/random.py:242–267  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

randrangeMethod · 0.95

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected