The randommatrix command generates a matrix of random integers x with 0 <= x < z. If a fourth argument p is given, it is the probability that an integer is generated.
random(10,3,3); [[2, 5, 9], [6, 4, 1], [8, 3, 2]]