Skip to contents

Gamma Random Samples

Usage

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.109122156 0.463496573 2.318645089 0.099700437 0.789578698 0.003006878
#>  [7] 3.549754306 0.320788501 0.057208557 1.192544692