Returns a random element from a passed indexed and associative array