I have imported an large array and I want to iterate through all row permutations at random. The code is designed to break if a certain array produces the desired solution.