for those in a hurry, 2147483647 is probably the number you're looking for (2^31 - 1 = 0x7FFFFFFF)
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()
See Also
- rand() - Generate a random integer
- srand() - Seed the random number generator
- mt_getrandmax() - Show largest possible random value
getrandmax
rymo
29-Oct-2009 10:46
29-Oct-2009 10:46
