private function isValidResult($number, $min, $max)
    {
        return is_int($number) && $number >= $min && $number <= $max;
    }
private function isValidResult($number, $min, $max)
    {
        return is_int($number) && $number >= $min && $number <= $max;
    }
private function isValidResult ( $ number , $ min , $ max ) { return is_int ( $ number ) && $ number >= $ min && $ number <= $ max ; }
Tells if the generated number is a valid result.
@param int $number The number to test
@param int $min The minimum value for the number
@param int $max The maximum value for the number
@return bool True if the number is a valid result, false if not
Tells if the generated number is a valid result .