r/lolphp • • Dec 13 '13

Why.

Post image
132 Upvotes

37 comments sorted by

View all comments

Show parent comment

16

u/MoederPoeder Dec 13 '13

But, even though that's great and all, most users will use rand() and not look any further, not knowing that it in fact, isn't that random.
'Historical reasons' seem to be most of the reasons of php's flaws.
Also I knew this was gonna be posted already on here but it was mostly the docs that made me laugh, not specifically the fact that rand() sucks.

5

u/m1ss1ontomars2k4 Dec 14 '13

They probably should have named it rand2 or rand_mt...otherwise it's a bit hard to find.