mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Tighten documentation for Random.triangular.
This commit is contained in:
parent
966d0e0930
commit
d145240f9a
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue