PHP3 Manual
PrevNext

rand

rand -- generate a random value

Description

int rand(void );

Returns a pseudo-random value between 0 and RAND_MAX. If you want a random number between 5 and 15, for example, use rand()%10 + 5.

Remember to seed the random number generator before use with srand().

See also srand() and getrandmax().


PrevHomeNext
powUpround