RandomIntVector
Returns a vector with random integers.
Syntax
-
RandomIntVector(n, A, B)
-
n
is a positive integer -
A
is an integer -
B
is an integer greater thanA
-
Description
RandomIntVector(n, A, B)
returns a vector of dimension n
in which each component is a random integer in [A, B) ∩ Z
.
Examples
mean(compute(RandomIntVector(3, 0, 10), n, 1, 1000000))
⎛4.49811 ⎞ e⎜4.500168⎟ ⎝4.503652⎠