Rng.lua

Download Latest Version

Lua's built in random number generator math.random doesn't always generate nice random numbers. This library implements its own random number generator, which is much more consistent.

Installation
Place the file rng.lua into the LuaScriptsLib folder.

How to use
To enable the RNG library for a specific level, add this line to lunadll.lua: This will load the RNG API.

Constants
These are static values that should be treated as read-only

Values
These are variables you can access

External Use Functions
These are functions you will need to use the library