PHP 教程 PHP getrandmax() 函数

norton · 2022-03-09 01:10:09 · 热度: 6

实例

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

<?php
echo(getrandmax());
?>

定义和用法

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

语法

getrandmax();

技术细节

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

查看更多 PHP Math 函数

猜你喜欢:
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册