The mt_getrandmax() function returns the largest possible value that can be returned by mt_rand().
PHP mt_getrandmax() Function has the following syntax.
mt_getrandmax();
None
Item | Description |
---|---|
Return Value | The largest possible value returned by mt_rand() |
Return Type | Integer |
Return largest possible random value that can be returned by mt_rand():
<?php
echo(mt_getrandmax());
?>
The code above generates the following result.