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] 1.32077986 1.23941393 0.98724990 1.45433900 0.54814905 0.25240455
#>  [7] 0.07710856 0.13335645 0.56161340 0.58459069