Reputation: 3472
I am coming across having to use mt_rand where both numbers are the same,
It is in a while loop, I get no errors doing this, but would it be better using an if statement to stop the mt_rand from running, or would it be less cost effective to just run it like
mt_rand(5, 5);
The while loop can have upto 50,000 loops?
Upvotes: 0
Views: 154