PHP 8.3.4 Released!

getrandmax

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

getrandmax显示随机数最大的可能值

说明

getrandmax(): int

返回调用 rand() 可能返回的最大值。

参数

此函数没有参数。

返回值

rand() 返回随机数可能返回的最大值

参见

add a note

User Contributed Notes 1 note

up
4
Anonymous
1 year ago
On a stock installation as of version 7.4.33 / 8.1.12, this function seems to return 2147483647 (maximum 32-bit integer).
To Top