Returns a random variate from an exponential distribution.
Category: | Random Number |
Tip: | If you want to change the seed value during execution, you must use the CALL RANEXP routine instead of the RANEXP 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 |
x=alpha−beta*log(ranexp(seed));
x=floor(−ranexp(seed)/log(1−p));