import java.util.Random; //for randomness public class Deck { // data member private int[] deckFace = new int[20]; private int[] deckSuit = new int[20]; // Constructors //accepts suit and face public Deck() { for(int i=0;i<20;i++){ Random random = new Random(); deckFace[i] = random.nextInt(14); //1-10 are as expected, 11 is Jack, 12 is Queen, 13 is King, 14 is Joker deckSuit[i] = random.nextInt(4); //Card order is highest to lowest. 1 is hearts 4 is spades. } } void printDeck(){ for(int i=0;i<20;i++){ System.out.println("Card " + i + " has a Face of " + deckFace[i] + " and a Suit of " + deckSuit[i]); } } void shuffle(){ for(int i=0;i<20;i++){ Random random = new Random(); deckFace[i] = random.nextInt(14); //1-10 are as expected, 11 is Jack, 12 is Queen, 13 is King, 14 is Joker deckSuit[i] = random.nextInt(4); //Card order is highest to lowest. 1 is hearts 4 is spades. } } }