Give pseudocode over phone and code on a shared screen how to scramble an array of integers in random order. Then optimize it for better performance.
Sigiloso
The above method is the most common solution to this problem, and it is incorrect. There is a huge probability that several cards will remain in the exact same place. What you want to do is take cards out, one by one, out of the unshuffled array and insert them in a random position into a shuffled array.