Function File:

unidrnd(n, r, c, ...)

Function File:

unidrnd(n,[sz])

Return a matrix of random samples from the discrete uniform distribution which assumes the integer values 1–

nwith equal probability.nmay 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.If no size arguments are given then the result matrix is the size of

n.

Package: octave