Rand

From Game Editor

Revision as of 14:33, 4 September 2008 by Asmodeus (Talk | contribs)
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.

Example:

int a;
a = rand(5);

The function returns a value that is equal to a random number from 0 to 5.

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