57585960616263
double[] d = new double[size()]; for(int i=0;i<size();i++) { d[i] = list.get(i).getProbability(); } this.chooser = new RandomChoice(d); }