Menu
Samaritan's Purse

RAND

Generate a random integer

SYNTAX

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

PARAMETERS

min

The lowest value to return (default: 0)

max

The highest value to return (default: getrandmax())

RETURN

A pseudo random value between min (or 0) and max (or getrandmax(), inclusive).

EXAMPLES

VOID

2144449960

MIN MAX

-2

PHP