CakeFest 2024: The Official CakePHP Conference

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