PHP getrandmax()Functions

PHP Math 参考手册PHP Math Reference Manual

Examples

Returns the maximum possible value of a random number displayed by calling the rand() function:

<?php
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 参考手册PHP Math Reference Manual Other Extensions