Returns a random variate from a triangular distribution.
Category: | Random Number |
Tip: | If you want to change the seed value during execution, you must use the CALL RANTRI routine instead of the RANTRI function. |
is a numeric constant, variable, or expression with an integer value. If seed ≤ 0, the time of day is used to initialize the seed stream.
Range | seed < 231−1 |
See | for more information about seed values.Seed Values |
is a numeric constant, variable, or expression that specifies the mode of the distribution.
Range | 0 < h < 1 |
x=(b-a)*rantri(seed,(c-a)/(b-a))+a;