The max on a Windows 7 x64 machine is also 2147483647.
mt_getrandmax
(PHP 4, PHP 5)
mt_getrandmax — Mostra il più grande valore casuale disponibile
Descrizione
int mt_getrandmax
( void
)
Restituisce il massimo valore che può essere restituito da una chiamata alla funzione mt_rand().
Vedere anche mt_rand(), mt_srand() e getrandmax().
marcus at synchromedia dot co dot uk ¶
1 year ago
On both 32 and 64-bit systems (OS X and Linux), mt_getrandmax() returns 2147483647 for me, i.e. ~2^31.
