Algosim documentation: RandomSignedVector

RandomSignedVector

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

Syntax

Description

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

Examples

mean(compute(RandomSignedVector(3), n, 1, 1000000))
 ⎛−0.000127789387569⎞
e⎜0.000537639114365 ⎟
 ⎝−0.000424859153554⎠

See also