PHP getrandmax() 函數(shù)
PHP Math 參考手冊
實例
返回通過調(diào)用 rand() 函數(shù)顯示的隨機數(shù)的最大可能值:
<?php
echo(getrandmax());
?>
運行實例 ?
定義和用法
The getrandmax() 函數(shù)返回通過調(diào)用 rand() 函數(shù)顯示的隨機數(shù)的最大可能值。
語法
技術(shù)細節(jié)
返回值: | 通過調(diào)用 rand() 函數(shù)顯示的隨機數(shù)的最大可能值。 |
返回類型: | Integer |
PHP 版本: | 4+ |
PHP Math 參考手冊