PHP getrandmax()Functions
Examples
Returns the maximum possible value of a random number displayed by calling the rand() function:
<?php
echo(getrandmax());
?>
echo(getrandmax());
?>
Run Example »
Definition and Usage
The getrandmax() function returns by callingrand()the maximum possible value of a random number displayed by the function.
Syntax
getrandmax();
Technical Details
| Return Value: | The maximum possible value of a random number displayed by calling the rand() function. |
|---|---|
| Return Type: | Integer |
| PHP Version: | 4+ |
PHP Math Reference Manual Other Extensions