summaryrefslogtreecommitdiffstats
path: root/Doc/library/random.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-19 00:14:03 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-19 00:14:03 (GMT)
commit29a0b57e4ed19532dc78dbf08b957c85bfbafbd6 (patch)
treeb7fae5150cb2e44679947e109e68eb2a05076f7d /Doc/library/random.rst
parentd478a46d563413d51a730678e4c72a54d2881123 (diff)
downloadcpython-29a0b57e4ed19532dc78dbf08b957c85bfbafbd6.zip
cpython-29a0b57e4ed19532dc78dbf08b957c85bfbafbd6.tar.gz
cpython-29a0b57e4ed19532dc78dbf08b957c85bfbafbd6.tar.bz2
Backport source links from 3.x.
Existing links have been updated to use the new reST role. In some files, I have also made cosmetic changes to the header.
Diffstat (limited to 'Doc/library/random.rst')
-rw-r--r--Doc/library/random.rst9
1 files changed, 3 insertions, 6 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index 4306911..e18b217 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -1,19 +1,16 @@
-
:mod:`random` --- Generate pseudo-random numbers
================================================
.. module:: random
:synopsis: Generate pseudo-random numbers with various common distributions.
+**Source code:** :source:`Lib/random.py`
+
+--------------
This module implements pseudo-random number generators for various
distributions.
-.. seealso::
-
- Latest version of the `random module Python source code
- <http://svn.python.org/view/python/branches/release27-maint/Lib/random.py?view=markup>`_
-
For integers, uniform selection from a range. For sequences, uniform selection
of a random element, a function to generate a random permutation of a list
in-place, and a function for random sampling without replacement.