under win2k3, php5.2.5, it returns 32767...
getrandmax
(PHP 4, PHP 5)
getrandmax — Show largest possible random value
Description
int getrandmax
( void
)
Returns the maximum value that can be returned by a call to rand().
Return Values
The largest possible random value returned by rand()
getrandmax
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.
