mt_getrandmax

(PHP 4, PHP 5, PHP 7)

mt_getrandmax가능한 최대 난수 값을 표시

설명

int mt_getrandmax ( void )

mt_rand()를 호출했을 때 반환될 수 있는 가장 큰 값을 반환합니다.

반환값

mt_rand()가 반환하는 최대 난수값을 반환합니다.

참고

add a note add a note

User Contributed Notes 1 note

up
23
bishop at php dot net
8 years ago
The upper-bound of this value is platform-independent.  PHP implements the 32-bit version of the Mersenne Twister ("mt"), so the maximum possible value is 2**31 - 1 (2147483647).
To Top