PHP3 Manual | ||
---|---|---|
Prev | Next |
rand -- generate a random value
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().
Prev | Home | Next |
pow | Up | round |