GetRandomPercent

From the Oblivion ConstructionSet Wiki
Revision as of 04:19, 14 April 2006 by imported>Mrflippy (Random value between min and max)
Jump to navigation Jump to search

Syntax:

GetRandomPercent 

Returns a random number from 0-99 inclusive.


To generate a random number between min and max:

set randVal to min + (GetRandomPercent * (max - min)) / 99