The What
Description
The array_rand
function picks one or more random entries out of an array, and returns the key (or keys) of the random entries.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
More coming soon…keep checking back.