PHP getrandmax() Function
Example
Return the maximum possible value of the random number that can be returned by rand():
<?php echo(getrandmax()); ?>
Definition and Usage
The getrandmax() function returns the maximum possible value that can be returned by rand().
Syntax
getrandmax();
Technical Details
Return Value: | The maximum possible value returned by rand() |
Return Type: | Integer |
PHP Version: | 4+ |