Computer >> Computer tutorials >  >> Programming >> PHP

mt_getrandmax() function in PHP


The mt_getrandmax() function Returns the largest possible random value.

Syntax

mt_getrandmax()

Parameters

  • NA

Return

The mt_getrandmax() function Returns an integer value, which is the largest possible random value.

Example

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

Output

2147483647