[Python-checkins] r65307 - in python/trunk: Doc/library/random.rst Lib/random.py

benjamin.peterson python-checkins at python.org
Wed Jul 30 15:46:54 CEST 2008


Author: benjamin.peterson
Date: Wed Jul 30 15:46:53 2008
New Revision: 65307

Log:
getrandombits is actually getrandbits

Modified:
   python/trunk/Doc/library/random.rst
   python/trunk/Lib/random.py

Modified: python/trunk/Doc/library/random.rst
==============================================================================
--- python/trunk/Doc/library/random.rst	(original)
+++ python/trunk/Doc/library/random.rst	Wed Jul 30 15:46:53 2008
@@ -36,11 +36,11 @@
 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

Modified: python/trunk/Lib/random.py
==============================================================================
--- python/trunk/Lib/random.py	(original)
+++ python/trunk/Lib/random.py	Wed Jul 30 15:46:53 2008
@@ -79,9 +79,9 @@
 
     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.
 
     """
 


More information about the Python-checkins mailing list