Skip to content

Commit 2d1a2d9

Browse files
authored
fix various typos in random module's documentation (GH-96912)
1 parent 810ae51 commit 2d1a2d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/random.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ Functions for integers
130130

131131
The positional argument pattern matches the :func:`range` function.
132132

133-
Keyword arguments should not be used because they can interpreted
134-
in unexpected ways. For example ``range(start=100)`` is interpreted
135-
as ``range(0, 100, 1)``.
133+
Keyword arguments should not be used because they can be interpreted
134+
in unexpected ways. For example ``randrange(start=100)`` is interpreted
135+
as ``randrange(0, 100, 1)``.
136136

137137
.. versionchanged:: 3.2
138138
:meth:`randrange` is more sophisticated about producing equally distributed
@@ -152,7 +152,7 @@ Functions for integers
152152
.. function:: getrandbits(k)
153153

154154
Returns a non-negative Python integer with *k* random bits. This method
155-
is supplied with the MersenneTwister generator and some other generators
155+
is supplied with the Mersenne Twister generator and some other generators
156156
may also provide it as an optional part of the API. When available,
157157
:meth:`getrandbits` enables :meth:`randrange` to handle arbitrarily large
158158
ranges.

0 commit comments

Comments
 (0)