Gamma Random Samples

ran_gamma(n = 1, shape = 1, rate = 1)

Arguments

n

A non-negative whole number of the number of random samples to generate.

shape

A non-negative numeric vector of shape.

rate

A non-negative numeric vector of rate.

Value

A numeric vector of the random samples.

Examples

ran_gamma(10)
#>  [1] 0.22648255 0.69463075 0.14376058 0.85883034 0.06692114 0.66110118
#>  [7] 0.09326151 1.10276927 1.30358112 0.57595494