Lines Matching refs:min
279 PHPAPI zend_long php_mt_rand_range(zend_long min, zend_long max) in php_mt_rand_range() argument
281 zend_ulong umax = max - min; in php_mt_rand_range()
285 return (zend_long) (rand_range64(umax) + min); in php_mt_rand_range()
289 return (zend_long) (rand_range32(umax) + min); in php_mt_rand_range()
295 PHPAPI zend_long php_mt_rand_common(zend_long min, zend_long max) in php_mt_rand_common() argument
300 return php_mt_rand_range(min, max); in php_mt_rand_common()
306 RAND_RANGE_BADSCALING(n, min, max, PHP_MT_RAND_MAX); in php_mt_rand_common()
316 zend_long min; in PHP_FUNCTION() local
326 Z_PARAM_LONG(min) in PHP_FUNCTION()
330 if (UNEXPECTED(max < min)) { in PHP_FUNCTION()
331 …docref(NULL, E_WARNING, "max(" ZEND_LONG_FMT ") is smaller than min(" ZEND_LONG_FMT ")", max, min); in PHP_FUNCTION()
335 RETURN_LONG(php_mt_rand_common(min, max)); in PHP_FUNCTION()