Skip to content

Commit 2f2a0a3

Browse files
zippererrhettinger
andauthored
Add detail to comment on range of random.random() (gh-111868)
--------- Co-authored-by: Raymond Hettinger <[email protected]>
1 parent 0c42f73 commit 2f2a0a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/stdlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ The :mod:`random` module provides tools for making random selections::
153153
'apple'
154154
>>> random.sample(range(100), 10) # sampling without replacement
155155
[30, 83, 16, 4, 8, 81, 41, 50, 18, 33]
156-
>>> random.random() # random float
156+
>>> random.random() # random float from the interval [0.0, 1.0)
157157
0.17970987693706186
158158
>>> random.randrange(6) # random integer chosen from range(6)
159159
4

0 commit comments

Comments
 (0)