mt_getrandmax()

本页内容
上一节: Func_math_min 下一节: Func_math_mt_rand

PHP mt_getrandmax() 函数

Category:PHP Math 数学函数参考手册

返回通过调用 mt_rand() 函数显示的随机数的最大可能值:


示例

<?php

echo(mt_getrandmax());

    ?>

定义和用法

mt_getrandmax() 函数返回通过调用 mt_rand() 函数显示的随机数的最大可能值。

语法

    mt_getrandmax();

技术细节

返回值: 通过调用 mt_rand() 函数显示的随机数的最大可能值:
返回类型: Integer
PHP 版本: 4+

Category:PHP Math 数学函数参考手册

上一节: Func_math_min 下一节: Func_math_mt_rand
此页面最后编辑于2022年8月17日 (星期三) 22:20。