Changes between Version 32 and Version 33 of Rmgen_Library


Ignore:
Timestamp:
Dec 10, 2012, 11:38:27 PM (11 years ago)
Author:
alpha123
Comment:

Minor correction about randInt

Legend:

Unmodified
Added
Removed
Modified
  • Rmgen_Library

    v32 v33  
    216216
    217217The following utility functions are available to scripts. Especially useful are the randomization functions for when you want parameters like terrains or area sizes to vary.
    218  * `randInt(maxValue)`: Returns a random integer between 0 and `maxValue - 1` (exclusive).
     218 * `randInt(maxValue)`: Returns a random integer between 0 (inclusive) and `maxValue - 1` (inclusive).
    219219 * `randInt(minValue, maxValue)`: Returns a random integer between `minValue` (inclusive) and `maxValue - 1` (inclusive).
    220220 * `randFloat()`: Returns a random floating-point number between 0.0 (inclusive) and 1.0 (exclusive).