From: Raymond Hettinger Date: Fri, 19 Jan 2007 18:07:18 +0000 (+0000) Subject: SF# 1635892: Fix docs for betavariate's input parameters . X-Git-Tag: v2.6a1~2252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b0ce8527112b997194a4e2fb9a1a850c6d73ee8;p=python SF# 1635892: Fix docs for betavariate's input parameters . --- diff --git a/Doc/lib/librandom.tex b/Doc/lib/librandom.tex index c6b88469a3..78c536b321 100644 --- a/Doc/lib/librandom.tex +++ b/Doc/lib/librandom.tex @@ -185,7 +185,7 @@ these equations can be found in any statistics text. \begin{funcdesc}{betavariate}{alpha, beta} Beta distribution. Conditions on the parameters are - \code{\var{alpha} > -1} and \code{\var{beta} > -1}. + \code{\var{alpha} > 0} and \code{\var{beta} > 0}. Returned values range between 0 and 1. \end{funcdesc} diff --git a/Lib/random.py b/Lib/random.py index b80f1a1c3f..ed87ddd64e 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -569,7 +569,7 @@ class Random(_random.Random): def betavariate(self, alpha, beta): """Beta distribution. - Conditions on the parameters are alpha > -1 and beta} > -1. + Conditions on the parameters are alpha > 0 and beta > 0. Returned values range between 0 and 1. """