]> granicus.if.org Git - python/commitdiff
Tighten documentation for Random.triangular.
authorRaymond Hettinger <python@rcn.com>
Mon, 24 Mar 2008 06:07:49 +0000 (06:07 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 24 Mar 2008 06:07:49 +0000 (06:07 +0000)
Doc/library/random.rst

index a064ac42464a46575da55533314b1e798f765abc..712add494897f8ca31d6cf5dbfd074182c2e6ba1 100644 (file)
@@ -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)