菜鸟教程 -- 学的不仅是技术,更是梦想!

PHP 教程
(追記) (追記ここまで)

PHP getrandmax() 函数

PHP Math 参考手册 PHP Math 参考手册

实例

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

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

运行实例 »

定义和用法

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


语法

getrandmax();

技术细节

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


PHP Math 参考手册 PHP Math 参考手册
AI 思考中...

点我分享笔记

  • 昵称 (必填)
  • 邮箱 (必填)
  • 引用地址

AltStyle によって変換されたページ (->オリジナル) /