From 4bbac89bdb87d2db0b715b93fe2341aae9258e9b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 12 Dec 2023 21:35:25 +0200 Subject: [PATCH] Fix references to undocumented class methods --- Doc/library/random.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 133070a48402f8..f7cd09b460a6d0 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -34,9 +34,9 @@ instance of the :class:`random.Random` class. You can instantiate your own instances of :class:`Random` to get generators that don't share state. Class :class:`Random` can also be subclassed if you want to use a different -basic generator of your own devising: in that case, override the :meth:`~random.random`, -:meth:`~random.seed`, :meth:`~random.getstate`, and :meth:`~random.setstate` methods. -Optionally, a new generator can supply a :meth:`~random.getrandbits` method --- this +basic generator of your own devising: in that case, override the :meth:`!random`, +:meth:`!seed`, :meth:`!getstate`, and :meth:`!setstate` methods. +Optionally, a new generator can supply a :meth:`!getrandbits` method --- this allows :meth:`randrange` to produce selections over an arbitrarily large range. The :mod:`random` module also provides the :class:`SystemRandom` class which