OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:randbelow
(Results
1 - 3
of
3
) sorted by null
/external/python/cpython3/Lib/
secrets.py
9
__all__ = ['choice', '
randbelow
', 'randbits', 'SystemRandom',
27
def
randbelow
(exclusive_upper_bound):
function
random.py
270
randbelow
= self._randbelow
273
j =
randbelow
(i+1)
314
randbelow
= self._randbelow
326
j =
randbelow
(n-i)
333
j =
randbelow
(n)
335
j =
randbelow
(n)
/external/python/cpython3/Lib/test/
test_secrets.py
69
# Test
randbelow
.
71
self.assertIn(secrets.
randbelow
(i), range(i))
72
self.assertRaises(ValueError, secrets.
randbelow
, 0)
73
self.assertRaises(ValueError, secrets.
randbelow
, -1)
Completed in 95 milliseconds