Infinite Shuffler

HeRock made an infinite array shuffler, which he thinks nobody can hack. The machine takes an infinite array, the operator gives it a key then it shuffles the array using that key. Now, he’ll tell you the mechanism and the secret key. Can you hack the machine?

This is a companion discussion topic for the original entry at