summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorpartev <petrosyan@gmail.com>2022-09-18 21:35:22 (GMT)
committerGitHub <noreply@github.com>2022-09-18 21:35:22 (GMT)
commit2d1a2d902a0daa39c340ea0a0f0565f249d8fc17 (patch)
tree5accdf613ca68aa135c66944baa469e8314a5515 /Doc
parent810ae51787cf2222801cd6cf4ebb2d7fa175ae59 (diff)
downloadcpython-2d1a2d902a0daa39c340ea0a0f0565f249d8fc17.zip
cpython-2d1a2d902a0daa39c340ea0a0f0565f249d8fc17.tar.gz
cpython-2d1a2d902a0daa39c340ea0a0f0565f249d8fc17.tar.bz2
fix various typos in random module's documentation (GH-96912)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/random.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index ad4a1ce..0e95d9d 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -130,9 +130,9 @@ Functions for integers
The positional argument pattern matches the :func:`range` function.
- Keyword arguments should not be used because they can interpreted
- in unexpected ways. For example ``range(start=100)`` is interpreted
- as ``range(0, 100, 1)``.
+ Keyword arguments should not be used because they can be interpreted
+ in unexpected ways. For example ``randrange(start=100)`` is interpreted
+ as ``randrange(0, 100, 1)``.
.. versionchanged:: 3.2
:meth:`randrange` is more sophisticated about producing equally distributed
@@ -152,7 +152,7 @@ Functions for integers
.. function:: getrandbits(k)
Returns a non-negative Python integer with *k* random bits. This method
- is supplied with the MersenneTwister generator and some other generators
+ is supplied with the Mersenne Twister generator and some other generators
may also provide it as an optional part of the API. When available,
:meth:`getrandbits` enables :meth:`randrange` to handle arbitrarily large
ranges.