protected static function _rand($min, $max)
    {
        if (version_compare(PHP_VERSION, '7.0.0', 'ge')) {
            $value = random_int($min, $max);
        } else {
            $value = mt_rand($min, $max);
        }

        return $value;
    }
protected static function _rand($min, $max)
    {
        if (version_compare(PHP_VERSION, '7.0.0', 'ge')) {
            $value = random_int($min, $max);
        } else {
            $value = mt_rand($min, $max);
        }

        return $value;
    }
protected static function _rand ( $ min , $ max ) { if ( version_compare ( PHP_VERSION , '7.0.0' , 'ge' ) ) { $ value = random_int ( $ min , $ max ) ; } else { $ value = mt_rand ( $ min , $ max ) ; } return $ value ; }
Gets a random integer between min and max

On PHP 7, this uses random_int(). On older systems it uses mt_rand().

@param integer $min
@param integer $max

@return integer
Gets a random integer between min and max