mt_getrandmax

(PHP 4, PHP 5, PHP 7)

mt_getrandmaxNajwiększa możliwa liczba losowa

Opis

mt_getrandmax ( void ) : int

Zwraca największą liczbę losową, jaką może zwrócić funkcja mt_rand().

Patrz także: mt_rand(), mt_srand() i getrandmax().

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