The PHP rand() function generates a random integer.
Syntax
rand()
// or
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()) |