PHP getrandmax() Function
The getrandmax() function returns the largest possible value that can be returned by rand().
int getrandmax ( void )
Returns the maximum value that can be returned by a call to rand().
Example -
Return Values
The largest possible random value returned by rand()