commands → randomvector

randomvector(z,n);
randomvector(z,n,p);

The randomvector command generates a vector of n random integers x with 0 <= x < z. If a third argument p is given, it is the probability that an integer is generated.

Examples

random(100,5);
	[43, 15, 29, 56, 14]