Name

rand

Synopsis

$number = rand();

Returns a random number between and the system-defined number RANDMAX. You should seed the random number generator with srand once and only once at the beginning of your script.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.