如果这么洗牌,应该怎么改代码?
public void shuffle(){
do{
Random random=new Random();
p=propoker.get(random.nextInt(propoker.size()));
if(propokerp.contains(p)){
System.out.println("该张牌已经存在!!!");
}else{
propokerp.add(p);
}
}while(propokerp.size()<=propoker.size());
}