PHP mt getrandmax

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : mt_getrandmax() function

Description

The mt_getrandmax() function returns the maximum value that can be returned by the mt_rand() function.

Version

(PHP 4 and above)

Syntax

mt_getrandmax()

Return value

The maximum random value returned by mt_rand()

Value Type : Integer.

Example :

  1. echo mt_getrandmax();  

  2. ?>