I've wrote this method on my own I want to know if there is a better way to do it?
public Card[] shuffle(){
for(int i = 0; i < Deck.length; i++){
int x = i + (int) (Math.random() * (32 - i));
Card temp = Deck[i];
Deck[i] = Deck[x];
Deck[x] = temp;
}
return Deck;
}
I guess you can get a better result if you choose the item to be exchanged from the whole deck and not only from the remaining cards, like this: