Returns pseudo-random numbers from a gamma distribution PDA_RNGAM
’
s TOMS599 routines. A value of
zero is returned if the argument of the gamma function is not positive. ’
s G05CBF). If it has not, there is no guarantee that
sensible values will be returned from this function. "
Generating gamma variates by a modified rejection technique"
, Comm. ACM 25(1), pp.47–54. (For A
=
1.0, algorithm GD) Ahrens, J.H., & Dieter, U. 1974, "
Computer Methods for sampling
gamma, Poisson and binomial distributions"
, Computing. 12), pp.223–246. (For 0.0
A
1.0,
adapted algorithm GS)