Write a program to shuffle a deck of cards. No, not a real deck, a virtual deck.
One good way to represent a deck of cards is as an array. Each element of the array is one card. To shuffle the deck, then, is to move cards around in the array. Here is one algorithm that will work:
loop 1000 times
pick two random cards and swap them
For this assignment I will give you a skeleton and you will need to write the shuffle function. This assignment will excercise loops, functions, and arrays.
The skeleton code is here.