← 返回列表

PHP mt_getrandmax() 函数

PHP mt_getrandmax() 函数 实例 返回通过调用 mt_rand() 函数显示的随机数的最大可能值: <?php echo(mt_getrandmax()); ?> 定义和用法 mt_getrandmax() 函数返回通过调用 mt_rand() 函数显示的随机数的最大可能值。 语法 mt_getrandmax(); 技术细节 返回值: 通过调用 mt_rand() 函数显示的随机数的最大可能值: 返回类型: Integer PHP 版本: 4+

PHP mt_getrandmax() 函数


实例

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

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

定义和用法

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

语法

mt_getrandmax();

技术细节

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

打开资源 ↗

交流与评论