Returns a random variate from a tabled probability distribution.
Category: | Random Number |
Tip: | If you want to change the seed value during execution, you must use the CALL RANTBL routine instead of the RANTBL 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 | Seed Values for more information about seed values. |
is a numeric constant, variable, or expression.
Range | 0 ≤ pi ≤ 1 for 0 <i ≤ n |
array m{3} m1-m3; x=m{rantbl(seed,of p1-p3)};