How to “shuffle” an array? [duplicate]
问题 This question already has an answer here: Random shuffling of an array 27 answers I am having a tough time trying to create a "shuffleDeck()" method. What I am trying to do is create a method that will take an array parameter (which will be the deck of cards) shuffle the cards, and return the shuffled array list. This is the code: class Card { int value; String suit; String name; public String toString() { return (name + " of " + suit); } } public class PickACard { public static void main(