under winXP, php5.2.6
getrandmax() returns 32767 (2^15-1) while on that same machine
mt_getrandmax() returns 2147483647 (2^31-1)
getrandmax
(PHP 4, PHP 5)
getrandmax — Plus grande valeur aléatoire possible
Description
int getrandmax
( void
)
Retourne la plus grande valeur aléatoire possible retournée par rand().
Valeurs de retour
La plus grande valeur aléatoire possible retournée par rand().
getrandmax
siska dot jakub at gmail dot com
01-Sep-2008 03:03
01-Sep-2008 03:03
chax-phpnet at i-rpg dot net
02-Dec-2007 04:27
02-Dec-2007 04:27
it returns 2147483647 (2^31) for both i386 and x86_64 under GNU/Linux.
