summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-03-24 06:07:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-03-24 06:07:49 (GMT)
commitd145240f9a164e7aea8424c844fe0402aab56454 (patch)
tree7e2e4217aed5ce3e82e3edd48cd4143c4c627272 /Doc/library
parent966d0e0930e9d73456a47ff459ea04ea8dc1cf9c (diff)
downloadcpython-d145240f9a164e7aea8424c844fe0402aab56454.zip
cpython-d145240f9a164e7aea8424c844fe0402aab56454.tar.gz
cpython-d145240f9a164e7aea8424c844fe0402aab56454.tar.bz2
Tighten documentation for Random.triangular.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/random.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index a064ac4..712add4 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -192,13 +192,13 @@ be found in any statistics text.
.. 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.
+ Return a random floating point number *N* such that ``low <= N < high`` and
+ with the specified *mode* between those bounds. The *low* and *high* bounds
+ default to zero and one. The *mode* argument defaults to the midpoint
+ between the bounds, giving a symmetric distribution.
- If *mode* is not specified or is ``None``, it defaults to the midpoint
- between the upper and lower bounds, producing a symmetric distribution.
+ .. versionadded:: 2.6
- The default values for *low* and *high* are zero and one.
.. function:: betavariate(alpha, beta)