顯示隨機數最大的可能值

getrandmax

(PHP 4, PHP 5, PHP 7, PHP 8)

getrandmax顯示隨機數最大的可能值

說明

getrandmax(): int

返回呼叫 rand() 可能返回的最大值。

返回值

rand() 返回 隨機數可能返回的最大值

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *