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

So, right now I'm making a card engine. Its purpose will be to make it easier for others to make card games. While making the order for the cards with a random number generator I've found that I'm using a lot of code. Here is what the code for card order looks like now.

@CD1 CD1=RND(51)

@CD2 CD2=RND(51) IF CD2==CD1 THEN GOTO @CD2

@CD3 CD3=RND(51) IF CD3==CD1 THEN GOTO @CD3 IF CD3==CD2 THEN GOTO @CD3

@CD4 CD4=RND(51) IF CD4==CD1 THEN GOTO @CD4 IF CD4==CD2 THEN GOTO @CD4 IF CD4==CD3 THEN GOTO @CD4 And so on, up until CD52. This uses a ton of lines of code and is very tediouse. Please help me make this smaller and easier to right. 