Summation of k i.i.d exponential random variables leads to a gamma distributed random variable. Using "expgen","gagen" is a function, taking a float number as the parameter of the underlying exponential distribution and an integer as k and generates a random number from gamma distribution.
related functions : rgamma
1 | gagen(lambda,k)
|
1 | gagen(10,3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.