9.3.10 Producing random numbers with the gamma distribution: randgammad
The randgammad command finds random numbers chosen
according to the gamma distribution (see
Section 9.4.11).
-
randgammad takes two arguments:
a and b, positive real numbers (the parameters).
- randgammad(a,b) returns a number chosen randomly
according to the gamma distribution with parameters a and b.
Example.
Input:
randgammad(3,1)
Output (for example):