| Statistics Toolbox | Search  Help Desk |
| hygernd | Examples |
Random numbers from the hypergeometric distribution.
Syntax
R = hygernd(M,K,N) R = hygernd(M,K,N,mm) R = hygernd(M,K,N,mm,nn)
Description
R = hygernd(M,K,N) generates hypergeometric random numbers with parameters M,K and N. The size of R is the common size of M, K, and N if all are matrices. If any parameter is a scalar, the size of R is the common size of the nonscalar parameters. R = hygernd(M,K,N,mm) generates hypergeometric random numbers with parameters M, K, and N. 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. The scalars mm and nn are the row and column dimensions of R.Examples
numbers = hygernd(1000,40,50)
numbers =
1