Class Random

The Random class provides access to the random number generator. Each instance is completely separate from all others.

The constructor for this class optionally takes a seed. If no seed is provided, then the current time (time(NULL) in C) is used instead.

constructor(seed: *Integer): Random

0 define between(lower: Integer, upper: Integer): Integer

Generate a random Integer value between lower and upper (inclusive).

0 define double: Double

Generate a random Double value in the range [0, 1).

0 define double_between(lower: Double, upper: Double): Double

Generate a random Double value between lower and upper.