The PHP mt_rand() function generates a random integer using the Mersenne Twister algorithm.
Syntax
mt_rand()
// or
mt_rand(min,max)
Parameters
Parameter | Description |
---|---|
min | Specifies the lowest number to return (default is 0) |
max | Specifies the highest number to return (default is mt_getrandmax()) |