C4 Engine
C4 Engine API Documentation

Random::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

Random::RandomInteger

Random::RandomUnitVector2D

Random::RandomUnitVector3D

Random::RandomUnitQuaternion

Random::RandomPointInsideDisk

Random::RandomPointInsideSphere