mt_getrandmax() 函数

PHP mt_getrandmax() 函数

定义和用法

mt_getrandmax() 显示随机数的最大可能值。

语法

mt_getrandmax()

说明

返回调用 mt_rand() 所能返回的最大的随机数。

例子

<?php
echo mt_getrandmax();
?>

输出类似:

3147483649


制作: http://www.7di.net 生活网搜集整理
参考: http://www.w3school.com.cn/php/func_math_mt_getrandmax.asp