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";
32 $max = array(100,
41 $res = rand($min[$x], $max[$x]);
43 if (!is_int($res) || $res < intval($min[$x]) || $res > intval($max[$x])) {
44 echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
72 echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
78 echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
83 rand() tests with default min and max value (i.e 0 thru %i)
84 PASSED: range min = 0 max = %i
86 rand() tests with defined min and max value
87 PASSED: range min = 10 max = 100
88 PASSED: range min = 100 max = 1000
89 PASSED: range min = 10 max = 19
90 PASSED: range min = 10500 max = 1050000
91 PASSED: range min = 16 max = 65536
92 PASSED: range min = 256 max = 448
95 PASSED range min = 1 max = 100
96 PASSED range min = 0 max = 100
97 PASSED range min = 0 max = 100
98 PASSED range min = 10 max = 100
99 PASSED range min = 10 max = 100