mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
[3.11] GH-101097: Switch from standard interval notation to greater or less than signs for random.random()'s documentation (GH-101119) (GH-101246)
(cherry picked from commit 8bcd4a6ec7
)
Co-authored-by: Andrew Hong <andrewhong@myyahoo.com>
Automerge-Triggered-By: GH:rhettinger
This commit is contained in:
parent
8cf8a6820e
commit
69d12d868e
2 changed files with 4 additions and 4 deletions
|
@ -794,7 +794,7 @@ class SystemRandom(Random):
|
|||
"""
|
||||
|
||||
def random(self):
|
||||
"""Get the next random number in the range [0.0, 1.0)."""
|
||||
"""Get the next random number in the range 0.0 <= X < 1.0."""
|
||||
return (int.from_bytes(_urandom(7)) >> 3) * RECIP_BPF
|
||||
|
||||
def getrandbits(self, k):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue