Function Reference: unidrnd

statistics: r = unidrnd (df)
statistics: r = unidrnd (df, rows)
statistics: r = unidrnd (df, rows, cols, …)
statistics: r = unidrnd (df, [sz])

Random arrays from the discrete uniform distribution.

r = unidrnd (df) returns an array of random numbers chosen from the discrete uniform distribution with df degrees of freedom. The size of r is the size of df. sigma must be a finite integer greater than 0, otherwise NaN is returned.

df may be a scalar or a multi-dimensional array.

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: unidcdf, unidinv, unidrnd, unidstat

Source Code: unidrnd