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