Lines Matching refs:max
7 echo "\nrand() 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 "\nrand() tests with defined min and max value\n";
31 $max = array(100,
39 $res = 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 rand() tests with default min and max value (i.e 0 thru %i)
55 PASSED: range min = 0 max = %i
57 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