Random: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m moved Random() to Random
imported>StDoodle
mNo edit summary
Line 12: Line 12:


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

Revision as of 21:38, 8 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.

Formatting Needed