Skip to content

Commit 8e79414

Browse files
[3.11] gh-104337: Clarify random.gammavariate doc entry (GH-104410) (#104481)
(cherry picked from commit 88c5c58) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent f5f9975 commit 8e79414

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Doc/library/random.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,10 @@ be found in any statistics text.
310310

311311
.. function:: gammavariate(alpha, beta)
312312

313-
Gamma distribution. (*Not* the gamma function!) Conditions on the
314-
parameters are ``alpha > 0`` and ``beta > 0``.
313+
Gamma distribution. (*Not* the gamma function!) The shape and
314+
scale parameters, *alpha* and *beta*, must have positive values.
315+
(Calling conventions vary and some sources define 'beta'
316+
as the inverse of the scale).
315317

316318
The probability distribution function is::
317319

@@ -322,7 +324,8 @@ be found in any statistics text.
322324

323325
.. function:: gauss(mu=0.0, sigma=1.0)
324326

325-
Normal distribution, also called the Gaussian distribution. *mu* is the mean,
327+
Normal distribution, also called the Gaussian distribution.
328+
*mu* is the mean,
326329
and *sigma* is the standard deviation. This is slightly faster than
327330
the :func:`normalvariate` function defined below.
328331

0 commit comments

Comments
 (0)