Skip to content

Commit

Permalink
Fix references to undocumented class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 12, 2023
1 parent bceba6e commit 4bbac89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bbac89

Please sign in to comment.