设计一个shuffle card
用了java. Random Class
1 package Random; 2 import java.util.*; 3 4 public class Solution { 5 static int cardNum = 10; 6 public int[] shuffle(int[] cards) { 7 //ArrayListres = new ArrayList (); 8 Random rnd = new Random(); 9 for(int i=0; i