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).(PHP 4, PHP 5, PHP 7, PHP 8)
mt_getrandmax â La plus grande valeur alĂ©atoire possible
Retourne la plus grande valeur aléatoire possible que peut
retourner la fonction mt_rand() sans argument, ce qui
correspond Ă la valeur maximum qui peut ĂȘtre utilisĂ©e pour son paramĂštre
max sans que le résultat soit élargi (et donc moins
aléatoire).
Cette fonction ne contient aucun paramĂštre.
Retourne la plus grande valeur aléatoire possible retournée par la fonction mt_rand()
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).