Menu Samaritan's Purse

MT_RAND

Generate a random value via the Mersenne Twister Random Number Generator

SYNTAX

mt_rand ( void ) : int
mt_rand ( int $min , int $max ) : int

PARAMETERS

min

Optional lowest value to be returned (default: 0)

max

Optional highest value to be returned (default: mt_getrandmax())

RETURN

A random integer value between min (or 0) and max (or mt_getrandmax(), inclusive), or FALSE if max is less than min.

EXAMPLES

VOID

1394242154

MIN MAX

8

PHP