The randmatrix or ranm or randMat command produces random vectors and matrices. (See also Section 10.1.28 and Section 18.3.5.)