ncx2rnd
              Random arrays from the noncentral chi-squared distribution.
 r = ncx2rnd (df, lambda) returns an array of random
 numbers chosen from the noncentral chi-squared distribution with df
 degrees of freedom and noncentrality parameter lambda.  The size of
 r is the common size of df and lambda.  A scalar input
 functions as a constant matrix of the same size as the other input.
 When called with a single size argument, ncx2rnd 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 noncentral chi-squared distribution can be found at https://en.wikipedia.org/wiki/Noncentral_chi-squared_distribution
See also: ncx2cdf, ncx2inv, ncx2pdf, ncx2stat
Source Code: ncx2rnd