Syntax error mt_getrandmax() function in 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

 Live Demo

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

Output

2147483647
Updated on: 2020-06-26T09:50:15+05:30

63 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements