Random

From Kolmafia
Revision as of 10:59, 12 January 2010 by 58.175.86.180 (talk) (Created page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.