Search w3schools.com:

SHARE THIS PAGE

PHP mt_getrandmax() Function


PHP Math Reference Complete PHP Math Reference

Definition and Usage

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

Syntax

mt_getrandmax()


Example

<?php
echo mt_getrandmax();
?>

The output of the code above could be:

2147483647


PHP Math Reference Complete PHP Math Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]