PHP getrandmax() 函數(shù)

2018-11-21 16:26 更新

PHP getrandmax() 函數(shù)

PHP Math 參考手冊 PHP Math 參考手冊

實例

返回通過調(diào)用 rand() 函數(shù)顯示的隨機數(shù)的最大可能值:

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

運行實例 ?

定義和用法

The getrandmax() 函數(shù)返回通過調(diào)用 rand() 函數(shù)顯示的隨機數(shù)的最大可能值。


語法

getrandmax();

技術(shù)細節(jié)

返回值: 通過調(diào)用 rand() 函數(shù)顯示的隨機數(shù)的最大可能值。
返回類型: Integer
PHP 版本: 4+


PHP Math 參考手冊 PHP Math 參考手冊
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號