renaming array_rand to array_element