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

Description

The following code shows how to return largest possible random value that can be returned by mt_rand().

Example


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

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions