Name
rand
Synopsis
int rand([intmin
, intmax
])
Returns a random number from min
to
max
, inclusive. If the
min
and max
parameters are not provided, returns a random number from 0 to the
value returned by the getrandmax(
)
function.
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.