Home
last modified time | relevance | path

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

/third_party/python/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)
/third_party/python/Lib/
Drandom.py390 randbelow = self._randbelow
393 j = randbelow(i + 1)
480 randbelow = self._randbelow
492 j = randbelow(n - i)
499 j = randbelow(n)
501 j = randbelow(n)
Dsecrets.py26 def randbelow(exclusive_upper_bound): function
/third_party/python/Doc/library/
Dsecrets.rst49 .. function:: randbelow(n)
/third_party/python/Misc/NEWS.d/
D3.6.1rc1.rst509 Fixed bug in secrets.randbelow() which would hang when given a negative