functions-online

rand

description

If called without the optional $min, $max arguments rand() returns a pseudo-random integer between 0 and getrandmax(). If you want a random number between 5 and 15 (inclusive), for example, use rand(5, 15).

declaration of rand

int rand ( int $min , int $max )

test rand online







share rand

comments for rand

be the first

No comments so far for rand(). Leave yours as first below.

+

Leave your comment