rand(m,n) returns a m-by-n matrix of pseudo-random numbers from a uniform distribution in the interval 0.0 <= ... < 1.0. rand(m,n,"name") uses the Gaussian distribution, with mean 0 and standard deviation 1, if "name" is "gauss" or "normal". If "name" is "exp" it uses the exponential distribution with mean 1. rand(m,n,"int",k) returns uniformly distributed integers in the interval 1 .. k.