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.
random(100,5); [43, 15, 29, 56, 14]