public function generate($min = 0, $max = null)
    {  
        if($max === null) {
            $max = 2796203;
        }
        
        if($max > 2796203) {
            throw new ReverseRegexException('Max param has exceeded the maxium 2796203');
        }
        
        if ($this->seed == 0) {
            $this->seed(mt_rand());
        }
        
        $this->seed = ($this->seed * 125) % 2796203;  
        
        
        return $this->seed % ($max - $min + 1) + $min;  
    }
public function generate($min = 0, $max = null)
    {  
        if($max === null) {
            $max = 2796203;
        }
        
        if($max > 2796203) {
            throw new ReverseRegexException('Max param has exceeded the maxium 2796203');
        }
        
        if ($this->seed == 0) {
            $this->seed(mt_rand());
        }
        
        $this->seed = ($this->seed * 125) % 2796203;  
        
        
        return $this->seed % ($max - $min + 1) + $min;  
    }
public function generate ( $ min = 0 , $ max = null ) { if ( $ max === null ) { $ max = 2796203 ; } if ( $ max > 2796203 ) { throw new ReverseRegexException ( 'Max param has exceeded the maxium 2796203' ) ; } if ( $ this -> seed == 0 ) { $ this -> seed ( mt_rand ( ) ) ; } $ this -> seed = ( $ this -> seed * 125 ) % 2796203 ; return $ this -> seed % ( $ max - $ min + 1 ) + $ min ; }
Generate a random numer

@param integer $max
@param integer $max 2,796,203 largest possible max
Generate a random numer