Name
srand
Synopsis
void srand(int seed
)
Seeds the standard pseudorandom-number generator with
seed
. You should call this function with
a varying number, such as that returned by time( )
, before making calls to rand( )
.
Get Programming PHP, 2nd Edition 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.