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