$ 0 0 So, you have an array of cards. Loop 100 times. Inside each loop choose two random numbers between 0 and 51. Then swap those two entries.