GH-101097: Switch from standard interval notation to greater or less than signs for random.random()'s documentation (#101119)

This commit is contained in:
Andrew Hong 2023-01-22 15:58:36 -05:00 committed by GitHub
parent 3e09f3152e
commit 8bcd4a6ec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -849,7 +849,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):