Random: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
Created page.
(No difference)

Revision as of 10:59, 12 January 2010

int Random(int number)

Returns a random number below the integer given. (Includes 0)

So, if you used

random(5);

It will return a number from 0 up to 4.

Note: Must select a number value of at least 2, otherwise random will print an error and return void.