Rand

From Game Editor

Revision as of 20:15, 3 September 2008 by Diormeh (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

rand is one of the simpler functions.

it takes what value you enter and returns a random number between 0 and your value.

such as:

int a;
a = rand(5);

you just made the integer a equal to a random number from 0 to 5.

Retrieved from "http://game-editor.com/Rand"