10-08-2010, 04:46 AM
(10-08-2010, 04:35 AM)Orgy Wrote: Nothing better than sending code to someone that makes them say, "What the fudge? Why is he doing this?"
Every once in a while I will run across a code review request at work (all major commits need code reviews) that makes me say something along the same line. Oddly enough the person who made the commit is almost always an intern.
Another alternative to the array_rand () method, if you're using the entire array and don't need to pull out random indices, is the shuffle () method. It does as its name suggestions: randomizes the order of the array elements.
Ho, ho, ho! Well, if it isn't fat stinking billy goat Billy Boy in poison!
How art thou, thou globby bottle of cheap, stinking chip oil?
Come and get one in the yarbles, if ya have any yarbles, you eunuch jelly thou!
How art thou, thou globby bottle of cheap, stinking chip oil?
Come and get one in the yarbles, if ya have any yarbles, you eunuch jelly thou!