Marsaglia, G., and W. W. Tsang. “The Monty Python Method for Generating Gamma Variables”. Journal of Statistical Software, vol. 3, no. 3, Jan. 1999, pp. 1-8, doi:10.18637/jss.v003.i03.