Return a random int in the range [0, n).
(exclusive_upper_bound)
| 23 | choice = _sysrand.choice |
| 24 | |
| 25 | def randbelow(exclusive_upper_bound): |
| 26 | """Return a random int in the range [0, n).""" |
| 27 | if exclusive_upper_bound <= 0: |
| 28 | raise ValueError("Upper bound must be positive.") |
| 29 | return _sysrand._randbelow(exclusive_upper_bound) |
| 30 | |
| 31 | DEFAULT_ENTROPY = 32 # number of bytes to return by default |
| 32 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…