w3resource

PHP : mt_getrandmax() function

Description

The mt_getrandmax() function returns the maximum value that can be returned by the mt_rand() function.

Version:

(PHP 4 and above)

Syntax:

mt_getrandmax()

Return value:

The maximum random value returned by mt_rand()

Value Type: Integer.

Example:

<?php
echo mt_getrandmax();
?>

View the example in the browser

See also

PHP Function Reference

Previous: min
Next: mt_rand



Follow us on Facebook and Twitter for latest update.