Category

General-Purpose Functions

Description

Returns a random number

Syntax

Random(min {0}, max {0}, step {0})

Parameters

min {0} - the lowest value to possibly return

max {0} - the highest value to possibly return

step {0} - the smallest possible interval between return values

Notes

If called with no parameters, i.e. Random(), the return value is a decimal number between 0 and 1.

To obtain a random integer between 1 and 100, use Random(1,100,1).

To obtain a random limit price between 2% and 4% above yesterday's close, use Random(c*1.02, c*1.04, 0.01).

 

 

 

Copyright © 2020-2021 Systematic Solutions, LLC