Input collection: myDeckOfCards29
Value | Suit |
Ace | Hearts |
King | Clubs |
Queen | Spades |
Jack | Hearts |
10 | Diamonds |
9 | Diamonds |
Output collection: mySolution29
Value | Suit |
Queen | Spades |
9 | Diamonds |
10 | Diamonds |
Ace | Hearts |
Jack | Hearts |
King | Clubs |
Solution code:
//Create a collection
ClearCollect(myDeckOfCards29,
{Value: "Ace", Suit: "Hearts"},
{Value: "King", Suit: "Clubs"},
{Value: "Queen", Suit: "Spades"},
{Value: "Jack", Suit: "Hearts"},
{Value: "10", Suit: "Diamonds"},
{Value: "9", Suit: "Diamonds"}
);
//Shuffle the collection order code
ClearCollect(
mySolution29,
Shuffle(myDeckOfCards29)
);