mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-40282: Allow random.getrandbits(0) (GH-19539)
This commit is contained in:
parent
d7c657d4b1
commit
75a3378810
5 changed files with 42 additions and 44 deletions
|
@ -111,6 +111,9 @@ Bookkeeping functions
|
|||
as an optional part of the API. When available, :meth:`getrandbits` enables
|
||||
:meth:`randrange` to handle arbitrarily large ranges.
|
||||
|
||||
.. versionchanged:: 3.9
|
||||
This method now accepts zero for *k*.
|
||||
|
||||
|
||||
.. function:: randbytes(n)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue