C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Math::RandomFloat

Defined in:  C4Computation.h
Returns a random floating-point number.
Prototype

float RandomFloat(float f);

Parameters
f The supremum of the range of possible values returned.
Description
The RandomFloat function returns a random floating-point number in the range [0.0, f).
See Also

Math::Random

Math::RandomUnitVector

Math::RandomUnitQuaternion