Algosim documentation: RandomVector

RandomVector

Returns a vector containing random real numbers from [0, 1).

Syntax

Description

RandomVector(n) returns a vector of dimension n in which each component is a random real number in [0, 1).

Examples

mean(compute(RandomVector(3), n, 1, 1000000))
 ⎛0.499560939805⎞
e⎜0.500148186495⎟
 ⎝ 0.5002479867 ⎠

See also