Sample from a hypergeometric distribution.
Usage
monty_random_hypergeometric(n1, n2, k, state)
monty_random_n_hypergeometric(n_samples, n1, n2, k, state)
Arguments
- n1
The number of white balls in the urn (called n in R's rhyper)
- n2
The number of black balls in the urn (called m in R's rhyper)
- k
The number of balls to draw
- 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).