X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP mt_getrandmax() Function

PHP Math Reference PHP Math Reference

Example

Return largest possible random value that can be returned by mt_rand():

<?php
echo(mt_getrandmax());
?>

Run example »

Definition and Usage

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


Syntax

mt_getrandmax();

Technical Details

Return Value: The largest possible value returned by mt_rand()
Return Type: Integer
PHP Version: 4+


PHP Math Reference PHP Math Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook