Math::Random
Defined in: C4Computation.h
Returns a random integer number.
Prototype
unsigned_int32 Random(unsigned_int32 n);
Parameters
n |
The number of possible values returned. This should be less than 65536.
|
Description
The Random function returns a random integer between 0 and n - 1, inclusive. The number n should be in the range [0, 65535].
See Also
Math::RandomFloat
Math::RandomUnitVector
Math::RandomUnitQuaternion
|