Math 函数
PHP Manual

getrandmax

(PHP 4, PHP 5)

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

说明

int getrandmax ( void )

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

参见 rand()srand()mt_getrandmax()


Math 函数
PHP Manual