chi2rnd
Random arrays from the Chi-square distribution.
r = chi2rnd (df)
returns an array of random numbers chosen
from the Chi-square distribution with df degrees of freedom. The size
of r is the size of df.
When called with a single size argument, return 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 vector of dimensions sz.
See also: chi2cdf, chi2inv, chi2pdf, chi2stat
Source Code: chi2rnd