From e7b146fb3bdca62a0d5ecc06dbf3348e5a4fe757 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 4 Feb 2000 15:28:42 +0000 Subject: The third and final doc-string sweep by Ka-Ping Yee. The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac. --- Lib/random.py | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'Lib/random.py') diff --git a/Lib/random.py b/Lib/random.py index 9e899ad88d..21cff89f0d 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -1,23 +1,24 @@ -# R A N D O M V A R I A B L E G E N E R A T O R S -# -# distributions on the real line: -# ------------------------------ -# normal (Gaussian) -# lognormal -# negative exponential -# gamma -# beta -# -# distributions on the circle (angles 0 to 2pi) -# --------------------------------------------- -# circular uniform -# von Mises - -# Translated from anonymously contributed C/C++ source. - -# Multi-threading note: the random number generator used here is not -# thread-safe; it is possible that two calls return the same random -# value. See whrandom.py for more info. +"""Random variable generators. + + distributions on the real line: + ------------------------------ + normal (Gaussian) + lognormal + negative exponential + gamma + beta + + distributions on the circle (angles 0 to 2pi) + --------------------------------------------- + circular uniform + von Mises + +Translated from anonymously contributed C/C++ source. + +Multi-threading note: the random number generator used here is not +thread-safe; it is possible that two calls return the same random +value. See whrandom.py for more info. +""" import whrandom from whrandom import random, uniform, randint, choice, randrange # For export! -- cgit v1.2.1