Instead of shuffling the array you want to iterate through, you can create a shuffled "index array" stating the order of original array you are going to iterate through. Iterating through the index array in order is equivalent to iterating the input array randomly.

Let's say your input array is `input_array`. You can use the above code to generate `index_array`. Then you can iterate input array randomly by accessing `input_array[index_array[i]]`, where `i` is the loop variable.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence