diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-07-30 13:46:53 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-07-30 13:46:53 (GMT) |
commit | f2eb2b44fc532c77c03bc95789817a20d7c558c3 (patch) | |
tree | a6d101fe1bc72fce4b1aa68f4b6898e84de01169 /Doc/library/random.rst | |
parent | abe0aee3cfd8e528be1823ffcce8b56c27e2b57f (diff) | |
download | cpython-f2eb2b44fc532c77c03bc95789817a20d7c558c3.zip cpython-f2eb2b44fc532c77c03bc95789817a20d7c558c3.tar.gz cpython-f2eb2b44fc532c77c03bc95789817a20d7c558c3.tar.bz2 |
getrandombits is actually getrandbits
Diffstat (limited to 'Doc/library/random.rst')
-rw-r--r-- | Doc/library/random.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 712add4..fc32e4a 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -36,11 +36,11 @@ it likely that the generated sequences seen by each thread don't overlap. 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`, :meth:`seed`, :meth:`getstate`, :meth:`setstate` and :meth:`jumpahead` methods. -Optionally, a new generator can supply a :meth:`getrandombits` method --- this +Optionally, a new generator can supply a :meth:`getrandbits` method --- this allows :meth:`randrange` to produce selections over an arbitrarily large range. .. versionadded:: 2.4 - the :meth:`getrandombits` method. + the :meth:`getrandbits` method. As an example of subclassing, the :mod:`random` module provides the :class:`WichmannHill` class that implements an alternative generator in pure |