Skip to contents

Sample from the beta distribution

Usage

monty_random_beta(a, b, state)

monty_random_n_beta(n_samples, a, b, state)

Arguments

a, b

The shape parameters

state

The random number state, from monty_rng_create

n_samples

The number of samples to take, per stream. When using the multiple-sample interface, all other parameters are held constant (per stream).

Value

A vector of random numbers, the same length as the number of streams in state.