Lines Matching refs:min
293 PHPAPI zend_long php_random_range(php_random_algo_with_state engine, zend_long min, zend_long max) in php_random_range() argument
295 zend_ulong umax = (zend_ulong) max - (zend_ulong) min; in php_random_range()
298 return (zend_long) (php_random_range64(engine, umax) + min); in php_random_range()
301 return (zend_long) (php_random_range32(engine, umax) + min); in php_random_range()
455 PHPAPI zend_long php_mt_rand_range(zend_long min, zend_long max) argument
457 return php_random_algo_mt19937.range(php_random_default_status(), min, max);
463 PHPAPI zend_long php_mt_rand_common(zend_long min, zend_long max) argument
468 return php_mt_rand_range(min, max);
476 zend_ulong offset = (double) ( (double) max - min + 1.0) * (r / (PHP_MT_RAND_MAX + 1.0));
478 return (zend_long) (offset + min);
526 zend_long min, max; local
535 Z_PARAM_LONG(min)
539 if (UNEXPECTED(max < min)) {
544 RETURN_LONG(php_mt_rand_common(min, max));
564 zend_long min, max; local
573 Z_PARAM_LONG(min)
577 if (max < min) {
578 RETURN_LONG(php_mt_rand_common(max, min));
581 RETURN_LONG(php_mt_rand_common(min, max));
616 zend_long min, max, result; local
619 Z_PARAM_LONG(min)
623 if (min > max) {
628 if (php_random_int_throw(min, max, &result) == FAILURE) {