### Function Reference: `hygernd`

statistics: r = hygernd (m, k, n)
statistics: r = hygernd (m, k, n, rows)
statistics: r = hygernd (m, k, n, rows, cols, …)
statistics: r = hygernd (m, k, n, [sz])

Random arrays from the hypergeometric distribution.

`r = hygernd ((m, k, n` returns an array of random numbers chosen from the hypergeometric distribution with parameters m, k, and n. The size of r is the common size of m, k, and n. A scalar input functions as a constant matrix of the same size as the other inputs.

The parameters m, k, and n must be positive integers with k and n not greater than m.

When called with a single size argument, `hygernd` returns a square matrix with the dimension specified. When called with more than one scalar argument, the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions. The size may also be specified with a row vector of dimensions, sz.

Further information about the hypergeometric distribution can be found at https://en.wikipedia.org/wiki/Hypergeometric_distribution

See also: hygecdf, hygeinv, hygepdf, hygestat

Source Code: hygernd