diff options
Diffstat (limited to 'Doc/library/random.rst')
-rw-r--r-- | Doc/library/random.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index c9e703c..0b82bf4 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -153,6 +153,15 @@ be found in any statistics text. Return a random floating point number *N* such that ``a <= N < b``. +.. function:: triangular(low, high, mode) + + Return a random floating point number *N* such that ``low <= N < high`` + and with the specified *mode* between those bounds. + + If *mode* is not specified or is ``None``, it defaults to the midpoint + between the upper and lower bounds, producing a symmetric distribution. + + The default values for *low* and *high* are zero and one. .. function:: betavariate(alpha, beta) |