package proj;
import java.util.Random;
public class xipai {
public xipai() {
}
public static void main(String[] args) {
xipai xipai = new xipai();
int[] card=new int[52];
System.out.println("变量赋初始值:");
for(int i=0;i<52;i++){
card[i]=i+1;
System.out.print(" "+card[i]);
if((i+1)%10==0)
System.out.println();
}
System.out.println();
System.out.println("洗动之后变为:");
Random ran=new Random();
for (int i=0;i<52;i++){
int temp=0;
int j=ran.nextInt(52);
temp=card[i];
card[i]=card[j];
card[j]=temp;
System.out.print(" "+card[i]);
if((i+1)%10==0)
System.out.println();
}
}
}