Use array_rand to pick a random element, rather than shuffling and taking the first
Merge pull request #1 from Rosuav/master

Use array_rand to pick a random element, rather than shuffling and taking the first