Algosim documentation: RandomIntVector

RandomIntVector

Returns a vector with random integers.

Syntax

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⎠

See also