ArrayList<PlayingCard> newDeck = new ArrayList<PlayingCard>(52);
SRandom rand = new SRandom(seed);
int j, wLeft = 52;
for (int i = 0; i < 52; i++) {
j = rand.nextRand() % wLeft;
newDeck.add(deck.get(j));
deck.set(j, deck.get(--wLeft));
}
deck = newDeck;