summaryrefslogtreecommitdiff
path: root/Doc/library/random.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/random.rst')
-rw-r--r--Doc/library/random.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index c9e703ccc0..0b82bf47bb 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)