Fixed a minor issue with array_rand() function.