GetRandomFloat Function

Returns a random floating point number from the Half-Life 2 Random Stream.

float GetRandomFloat(float fMin, float fMax)

Parameters

float fMin

Minimum random bound.

float fMax

Maximum random bound.

Return Value

A random number between (inclusive) fMin and fMax.