C4 Engine
C4 Engine API Documentation

Random::RandomInteger

Defined in:  C4Computation.h
Returns a random integer number.
Prototype

uint32 RandomInteger(uint32 n);

Parameters
n The number of possible values returned. This should be less than 65536.
Description
The RandomInteger function returns a random integer between 0 and n − 1, inclusive. The number n should be in the range [0, 65535].
See Also

Random::RandomFloat

Random::RandomUnitVector2D

Random::RandomUnitVector3D

Random::RandomUnitQuaternion

Random::RandomPointInsideDisk

Random::RandomPointInsideSphere