protected function rand($min, $max)
    {
        $this->seed = md5($this->seed);
        $rand = hexdec(substr($this->seed, 0, 8));
        return ($rand % ($max - $min + 1)) + $min;
    }
protected function rand($min, $max)
    {
        $this->seed = md5($this->seed);
        $rand = hexdec(substr($this->seed, 0, 8));
        return ($rand % ($max - $min + 1)) + $min;
    }
protected function rand ( $ min , $ max ) { $ this -> seed = md5 ( $ this -> seed ) ; $ rand = hexdec ( substr ( $ this -> seed , 0 , 8 ) ) ; return ( $ rand % ( $ max - $ min + 1 ) ) + $ min ; }
Generate number from seed

Each call runs MD5 on the seed again

@param int $min
@param int $max
@return int
Generate number from seed