Any help is appreciated thank you.

public void shuffle() { boolean check[] = new boolean[52]; for (int i = 0; i < check.length; i++) { check[i] = false; } for (int i = 0; i < cards.length; i++) { int random = (int) Math.random() * 52; if (check[random] == true) { random = (int) Math.random() * 52; } check[random] = true; System.out.println(cards[random].getSuit() + " " + cards[random].getValue()); shuffledCards[random].setSuit(cards[random].getSuit()); shuffledCards[random].setValue(cards[random].getValue()); } }