getrandombits is actually getrandbits
authorBenjamin Peterson <benjamin@python.org>
Wed, 30 Jul 2008 13:46:53 +0000 (13:46 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 30 Jul 2008 13:46:53 +0000 (13:46 +0000)
Doc/library/random.rst
Lib/random.py

index 712add494897f8ca31d6cf5dbfd074182c2e6ba1..fc32e4a0ee8f4b2c0ef4807228ef618382a9354d 100644 (file)
@@ -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
index bd8679fea93568d5a7122f108f5861b8d0b46a50..5879340a8d461753306ef4146c2ffabd45781eae 100644 (file)
@@ -79,9 +79,9 @@ class Random(_random.Random):
 
     Class Random can also be subclassed if you want to use a different basic
     generator of your own devising: in that case, override the following
-    methods:  random(), seed(), getstate(), setstate() and jumpahead().
-    Optionally, implement a getrandombits() method so that randrange()
-    can cover arbitrarily large ranges.
+    methods: random(), seed(), getstate(), setstate() and jumpahead().
+    Optionally, implement a getrandbits() method so that randrange() can cover
+    arbitrarily large ranges.
 
     """