Lines Matching refs:min
137 double min, max; in PHP_METHOD() local
142 Z_PARAM_DOUBLE(min) in PHP_METHOD()
148 if (!zend_finite(min)) { in PHP_METHOD()
167 if (UNEXPECTED(max <= min)) { in PHP_METHOD()
172 …RETURN_DOUBLE(php_random_gammasection_closed_open(randomizer->algo, randomizer->status, min, max)); in PHP_METHOD()
174 if (UNEXPECTED(max < min)) { in PHP_METHOD()
179 …RETURN_DOUBLE(php_random_gammasection_closed_closed(randomizer->algo, randomizer->status, min, max… in PHP_METHOD()
181 if (UNEXPECTED(max <= min)) { in PHP_METHOD()
186 …RETURN_DOUBLE(php_random_gammasection_open_closed(randomizer->algo, randomizer->status, min, max)); in PHP_METHOD()
188 if (UNEXPECTED(max <= min)) { in PHP_METHOD()
193 RETVAL_DOUBLE(php_random_gammasection_open_open(randomizer->algo, randomizer->status, min, max)); in PHP_METHOD()
233 zend_long min, max; in PHP_METHOD() local
236 Z_PARAM_LONG(min) in PHP_METHOD()
240 if (UNEXPECTED(max < min)) { in PHP_METHOD()
254 zend_ulong offset = (double) ( (double) max - min + 1.0) * (r / (PHP_MT_RAND_MAX + 1.0)); in PHP_METHOD()
256 result = (zend_long) (offset + min); in PHP_METHOD()
258 result = randomizer->algo->range(randomizer->status, min, max); in PHP_METHOD()