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



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/php/function-reference/mt_getrandmax.php