diff options
author | Antoine Pitrou <antoine@python.org> | 2020-04-17 19:32:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 19:32:14 +0200 |
commit | 75a3378810bab03949ad9f653f78d933bdf3879c (patch) | |
tree | 96ec61f0d287ca5632da7ee091079817d4197733 /Doc/library | |
parent | d7c657d4b121164caa439253da5266b2e29a1bed (diff) | |
download | cpython-git-75a3378810bab03949ad9f653f78d933bdf3879c.tar.gz |
bpo-40282: Allow random.getrandbits(0) (GH-19539)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/random.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 51242cb0e9..9964af46b2 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -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) |