public function generate()
    {
        if (feof($this->h))
            rewind($this->h);

        return (float) fgets($this->h);
    }
public function generate()
    {
        if (feof($this->h))
            rewind($this->h);

        return (float) fgets($this->h);
    }
public function generate ( ) { if ( feof ( $ this -> h ) ) rewind ( $ this -> h ) ; return ( float ) fgets ( $ this -> h ) ; }
Read a float from a file and return it. It doesn't do anything
to make sure that the float returned will be in the appropriate
range.

If the file has reached its end it rewinds the file pointer.

@return float A random float in the range (0,1)
Read a float from a file and return it . It doesn t do anything to make sure that the float returned will be in the appropriate range .