summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-01-19 18:07:18 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-01-19 18:07:18 (GMT)
commit1b0ce8527112b997194a4e2fb9a1a850c6d73ee8 (patch)
tree2d86a2a3c3984b9cc462a0905294cc63cd48bf06
parent0682a52e311fae31f99b766d842a188f0647cb9f (diff)
downloadcpython-1b0ce8527112b997194a4e2fb9a1a850c6d73ee8.zip
cpython-1b0ce8527112b997194a4e2fb9a1a850c6d73ee8.tar.gz
cpython-1b0ce8527112b997194a4e2fb9a1a850c6d73ee8.tar.bz2
SF# 1635892: Fix docs for betavariate's input parameters .
-rw-r--r--Doc/lib/librandom.tex2
-rw-r--r--Lib/random.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/librandom.tex b/Doc/lib/librandom.tex
index c6b8846..78c536b 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 b80f1a1..ed87ddd 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.
"""