// Returns a random floating-point value in the rage [0,1] inline double RandomFloat( ) { return ranf_next( ); }
// Returns a random floating-point value in the rage [0,max] inline double RandomFloat( double max ) { return ( ranf_next( ) * max ); }
float RandomFloat( float max ) // Returns a random floating-point value in the rage [0,max] { return ( (float)ranf_next( ) * max ); }