Statistics Toolbox | ![]() ![]() |
Random numbers from the hypergeometric distribution
Syntax
Description
R = hygernd(M,K,N)
generates hypergeometric random numbers with parameters M, K, and N. Vector or matrix inputs for M, K, and N must have the same size, which is also the size of R
. A scalar input for M, K, or N is expanded to a constant matrix with the same dimensions as the other inputs.
R = hygernd(M,K,N,mm)
generates hypergeometric random numbers with parameters M, K, and N, where mm is a 1-by-2 vector that contains the row and column dimensions of R.
R = hygernd(M,K,N,mm,nn)
generates hypergeometric random numbers with parameters M, K, and N, where scalars mm and nn are the row and column dimensions of R.
Examples
See Also
hygecdf
, hygeinv
, hygepdf
, hygestat
![]() | hygepdf | hygestat | ![]() |