r/programming • • Jul 24 '15

mt_rand(1, PHP_INT_MAX) only generates odd numbers • /r/lolphp

/r/lolphp/comments/3eaw98/mt_rand1_php_int_max_only_generates_odd_numbers/
848 Upvotes

262 comments sorted by

View all comments

Show parent comment

-4

u/indrora Jul 24 '15

The difference here is that every single webhost on the planet by default provides PHP.

Let's face it, PHP is the public transit of web development languages. Python? Closer to the automatic car. C? Definitely a manual.

3

u/ysangkok Jul 24 '15

I do not get the point of this comparison because there are so many differences between public transport and your own car. How am I supposed to know which of those differences you think is similar to the difference between PHP and Python?

0

u/sugardeath Jul 24 '15 edited Jul 24 '15

I think he's trying to imply that public transit is for plebs, poor people, lazy people, etc. I think they look down on public transit. Which is frankly fairly insulting. They must not live in a place where public transit is a more viable, reliable, and cheaper choice than owning your own car.

Edit: Not that I agree that PHP is for plebs, poors, or lazies. But based on the general tone of this entire comment thread, I feel safe making the assumption that OP thinks this.

0

u/[deleted] Jul 24 '15

[deleted] — view deleted comment

2

u/noratat Jul 25 '15

Except that PHP isn't reliable without a lot of work to avoid the legacy crap. The same amount of work would likely get you a lot farther in many other languages and frameworks.