PHP mt_getrandmax () function
Examples
Returns a random number by calling mt_rand () function displays the maximum possible values:
<?php
echo(mt_getrandmax());
?>
echo(mt_getrandmax());
?>
Running instance »
Definition and Usage
mt_getrandmax () function returns by calling mt_rand () the maximum possible value of the random number function display.
grammar
mt_getrandmax();
technical details
return value: | By calling mt_rand () function to display a random number of the maximum possible value: |
---|---|
Return type: | Integer |
PHP version: | 4+ |
PHP Math Reference