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

 Live Demo

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

Output

2147483647

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 26-Jun-2020

19 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements