English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

mt_getrandmax() function in PHP

The mt_getrandmax() function returns the maximum possible random value.

Syntax

mt_getrandmax()

Parameter

  • Not Applicable

Return

The mt_getrandmax() function returns an integer value, which is the maximum possible random value.

Example

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

Output Result

2147483647