PHP mt_getrandmax() 函数

PHP 教程 · 2019-01-27 07:29:37

实例

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

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

定义和用法

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

语法

mt_getrandmax();

技术细节

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

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Pro HTML5 Programming

Pro HTML5 Programming

Peter Lubbers、Brian Albers、Frank Salim / Apress / 2010-9-1 / USD 49.99

HTML5 is here, and with it, web applications take on a power, ease, scalability, and responsiveness like never before. In this book, developers will learn how to use the latest cutting-edge HTML5 web ......一起来看看 《Pro HTML5 Programming》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具