RandomNumber()

Summary

Generates a random number between 0.0 and 1.0.

Syntax

rand_value = RandomNumber()

Returns

A pseudo-random real number between 0.0 and 1.0.

Notes

  • When Maptitude is initialized there is a call to SetRandomSeed() with a "random" seed based on the current time.

  • You can call SetRandomSeed() with a particular seed value, which will always create the same sequence of random numbers. This is useful when testing a procedure, so that results will be comparable.

  • If another macro calls SetRandomSeed(), that will start another sequence of random numbers for all calls to RandomNumber().

See Also

Function Summary
RandSamples() Return an array of random samples of the given type of random distribution and parameters defined in the options array
SetRandomSeed() Seeds the RandomNumber() function