public void shuffle() { Random rnd = new Random(); for (int i = 0; i < set.size(); i++) { swap(set, i, rnd.nextInt(set.size())); } }