Difference between revisions of "Random"

From Kolmafia
Jump to navigation Jump to search
(Created page.)
 
imported>StDoodle
m (moved Random() to Random)
(No difference)

Revision as of 22:31, 2 March 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.