Creating a card shuffling program Java
问题 I am trying to create a card shuffler within java that will perform "the perfect shuffle" (splitting the deck in two equal halves and interleaving each card, then repeating one more time), by performing both in and out shuffles. I have the following code to perform the shuffle. public class Shuffle { private static final int shuffleCount = 2; private static final int valueCount = 52; public static void main(String[] args){ System.out.println("Result of " + shuffleCount + "perfect shuffles" );