Random

From Kolmafia
Revision as of 22:31, 2 March 2010 by imported>StDoodle (moved Random() to Random)
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.