Monkey Documentation

Module monkey.random

The random module provides functions to generate random numbers.


Globals:
Functions:
  • Rnd : Float ()
  • Rnd : Float ( range:Float )
  • Rnd : Float ( low:Float, high:Float )

Global Documentation

Global Seed : Int

The current random number generator seed used by Rnd.

See also Rnd


Function Documentation

Function Rnd : Float ()

Returns a random float in the range 0 (inclusive) to 1 (exclusive).

See also Seed

Function Rnd : Float ( range:Float )

Returns a random float in the range 0 (inclusive) to range (exclusive).

See also Seed

Function Rnd : Float ( low:Float, high:Float )

Returns a random float in the range low (inclusive) to high (exclusive).

See also Seed