From 1b0ce8527112b997194a4e2fb9a1a850c6d73ee8 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 19 Jan 2007 18:07:18 +0000 Subject: [PATCH] SF# 1635892: Fix docs for betavariate's input parameters . --- Doc/lib/librandom.tex | 2 +- Lib/random.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/lib/librandom.tex b/Doc/lib/librandom.tex index c6b88469a37..78c536b3216 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 b80f1a1c3f0..ed87ddd64ee 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. """