Board Thread:Questions and Answers/@comment-25139420-20140731141915/@comment-5334617-20140731143326

First of all, RND(51) will only give you values 0 to 50. Your scheme would go into an infinite loop trying to find an 'unused' value to put into CD52.

Here's some code that will shuffle a deck: