The mt_rand() function generates a random integer using the Mersenne Twister algorithm.
int mt_rand ( void )
int mt_rand ( int $min , int $max )
Parameter | Description |
---|---|
min | Optional lowest value to be returned (default: 0) |
max | Optional highest value to be returned (default: mt_getrandmax()) |
A random integer value between min (or 0) and max (or mt_getrandmax(), inclusive), or FALSE if max is less than min.