Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
1 of 4

I'd just like to point out that though the cards would be better represented as objects instead of ints, and the program organization and flow is a bit muddled, your choice of shuffling algorithm is excellent.

The Fisher-Yates shuffle is a simple and unbiased way to randomize the order of the elements of an array, and you have a textbook implementation of it. Even if you didn't write the code yourself, I think you should get credit for picking the right code to copy.