Lines Matching refs:min
140 double min, max; in PHP_METHOD() local
145 Z_PARAM_DOUBLE(min) in PHP_METHOD()
151 if (!zend_finite(min)) { in PHP_METHOD()
170 if (UNEXPECTED(max <= min)) { in PHP_METHOD()
175 RETURN_DOUBLE(php_random_gammasection_closed_open(randomizer->engine, min, max)); in PHP_METHOD()
177 if (UNEXPECTED(max < min)) { in PHP_METHOD()
182 RETURN_DOUBLE(php_random_gammasection_closed_closed(randomizer->engine, min, max)); in PHP_METHOD()
184 if (UNEXPECTED(max <= min)) { in PHP_METHOD()
189 RETURN_DOUBLE(php_random_gammasection_open_closed(randomizer->engine, min, max)); in PHP_METHOD()
191 if (UNEXPECTED(max <= min)) { in PHP_METHOD()
196 RETVAL_DOUBLE(php_random_gammasection_open_open(randomizer->engine, min, max)); in PHP_METHOD()
238 zend_long min, max; in PHP_METHOD() local
241 Z_PARAM_LONG(min) in PHP_METHOD()
245 if (UNEXPECTED(max < min)) { in PHP_METHOD()
259 zend_ulong offset = (double) ( (double) max - min + 1.0) * (r / (PHP_MT_RAND_MAX + 1.0)); in PHP_METHOD()
261 result = (zend_long) (offset + min); in PHP_METHOD()
263 result = engine.algo->range(engine.state, min, max); in PHP_METHOD()