commands → randommatrix

randommatrix(z,m,n);
randommatrix(z,m,n,p);

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.

Examples

random(10,3,3);
	[[2, 5, 9], [6, 4, 1], [8, 3, 2]]