Returns a random variate from a gamma distribution.
Category: | Random Number |
Tip: | If you want to change the seed value during execution, you must use the CALL RANGAM routine instead of the RANGAM 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 that specifies the shape parameter.
Range | a > 0 |
x=beta*rangam(seed,alpha);
x=2*rangam(seed,alpha);
y1=rangam(seed,alpha); y2=rangam(seed,beta); x=y1/(y1+y2);