PHP 7 mt_getrandmax() Function
Example
Return largest possible random value that can be returned by mt_rand():
<?php
echo(mt_getrandmax()); 
 ?>
Try it Yourself »
Definition and Usage
The mt_getrandmax() function returns the largest possible value that can be returned by mt_rand().
Syntax
 mt_getrandmax();
Technical Details
| Return Value: | The largest possible value returned by mt_rand() | 
|---|---|
| Return Type: | Integer | 
| PHP Version: | 4+ | 
❮ PHP Math Reference

