Board Thread:Questions and Answers/@comment-25139420-20140731141915/@comment-5483792-20140731143932

So, that last part swaps a random card with the one determined by how far the loop has gone. Took me a while to understand that. Very good code though.