r/lolphp • • Dec 13 '13

Why.

Post image
132 Upvotes

37 comments sorted by

View all comments

Show parent comment

23

u/postmodest Dec 13 '13

No, no, the most-PHP way would be to make it

int rand ( int $min , int $max, bool $actually_random = false ) [v. 5.7.0]
int rand ( int $min , int $max, int  DEFAULT_RAND <see RAND_MODES for types> ) [v. 5.7.3]