Lines Matching refs:max
7 echo "\nmt_rand() tests with default min and max value (i.e 0 thru ", $default_max, ")\n";
18 echo "FAILED: res = ", $res, " min = 0 max = ", $default_max, "\n";
20 echo "PASSED: range min = 0 max = ", $default_max, "\n";
23 echo "\nmt_rand() tests with defined min and max value\n";
31 $max = array(100,
39 $res = mt_rand($min[$x], $max[$x]);
41 if (!is_int($res) || $res < intval($min[$x]) || $res > intval($max[$x])) {
42 … echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
48 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
54 mt_rand() tests with default min and max value (i.e 0 thru 2147483647)
55 PASSED: range min = 0 max = 2147483647
57 mt_rand() tests with defined min and max value
58 PASSED: range min = 10 max = 100
59 PASSED: range min = 100 max = 1000
60 PASSED: range min = 10500 max = 1050000
61 PASSED: range min = 16 max = 65536
62 PASSED: range min = 256 max = 448