CalcIt Commands

RANDOM(AFrom, ATo)

Returns a random integer from the range that extends between AFrom and ATo (inclusive). Random can handle negative ranges (where AFrom is greater than ATo).

AFrom and ATo has to be in the range 32 bit integer.

To initialize the random number generator, add a single call Randomize or assign a value to the RandSeed system parameter before making any calls to Random.

Go Back