You are here : python_3randomrandomgammavariate

random.gammavariate() - random

Gamma distribution.  (Not the gamma function!)  Conditions on the
parameters are alpha > 0 and beta > 0.


Syntax

random.gammavariate(alpha, beta)


Example

x ** (alpha - 1) * math.exp(-x / beta)
pdf(x) =  --------------------------------------
            math.gamma(alpha) * beta ** alpha


Output / Return Value


Limitations


Alternatives / See Also


Reference