diff options
author | zipperer <47086307+zipperer@users.noreply.github.com> | 2023-11-09 14:58:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 14:58:04 (GMT) |
commit | 2f2a0a3a6c5494bcf13a8f587c28e30d86617ff0 (patch) | |
tree | 3561b7acdf69bea35f66efa24423f0a1e7dcb93d /Doc | |
parent | 0c42f7304a2757fe0f78bc6c6fbb33225cd9da15 (diff) | |
download | cpython-2f2a0a3a6c5494bcf13a8f587c28e30d86617ff0.zip cpython-2f2a0a3a6c5494bcf13a8f587c28e30d86617ff0.tar.gz cpython-2f2a0a3a6c5494bcf13a8f587c28e30d86617ff0.tar.bz2 |
Add detail to comment on range of random.random() (gh-111868)
---------
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/stdlib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index 6bae279..63f4b5e 100644 --- a/Doc/tutorial/stdlib.rst +++ b/Doc/tutorial/stdlib.rst @@ -153,7 +153,7 @@ The :mod:`random` module provides tools for making random selections:: 'apple' >>> random.sample(range(100), 10) # sampling without replacement [30, 83, 16, 4, 8, 81, 41, 50, 18, 33] - >>> random.random() # random float + >>> random.random() # random float from the interval [0.0, 1.0) 0.17970987693706186 >>> random.randrange(6) # random integer chosen from range(6) 4 |