Home   >   User Resources   >   Online Help   >   apaReturns.Random
 

 

Function index Version 3.0.0

apaReturns.Random(nAssets)

Excel=apaReturns.Random(nAssets)

Result

Generates a 1 x nAssets vector of uniformly distributed random returns between -100% and +100%. Multiply with a constant < 1 to generate returns from a narrower range.

Syntax

nAssets: number of assets

Remarks

The returns are uniformly distributed between -100% and +100%. Multiply with a scalar < 1 to draw from a narrower range.