顯示隨機數最大的可能值 « fmod hexdec » PHP Manual Math 函式 顯示隨機數最大的可能值 getrandmax (PHP 4, PHP 5, PHP 7, PHP 8)getrandmax — 顯示隨機數最大的可能值 說明 getrandmax(): int 返回呼叫 rand() 可能返回的最大值。 返回值 rand() 返回 隨機數可能返回的最大值 參見 rand() - 產生一個隨機整數 srand() - 播下隨機數發生器種子 mt_getrandmax() - 顯示隨機數的最大可能值