Home
last modified time | relevance | path

Searched refs:randbelow (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_secrets.py71 self.assertIn(secrets.randbelow(i), range(i))
72 self.assertRaises(ValueError, secrets.randbelow, 0)
73 self.assertRaises(ValueError, secrets.randbelow, -1)
/external/python/cpython3/Lib/
Drandom.py274 randbelow = self._randbelow
277 j = randbelow(i+1)
318 randbelow = self._randbelow
330 j = randbelow(n-i)
337 j = randbelow(n)
339 j = randbelow(n)
Dsecrets.py27 def randbelow(exclusive_upper_bound): function
/external/python/cpython3/Doc/library/
Dsecrets.rst49 .. function:: randbelow(n)
/external/python/cpython3/Misc/NEWS.d/
D3.6.1rc1.rst509 Fixed bug in secrets.randbelow() which would hang when given a negative