/** {@inheritDoc} */
 public void shuffle(Random rand) {
   for (int i = 0; i < size; i++) {
     TFloatLink l = getLinkAt(rand.nextInt(size()));
     removeLink(l);
     add(l.getValue());
   }
 }
示例#2
0
 /** {@inheritDoc} */
 public void shuffle(Random rand) {
   for (int i = _pos; i-- > 1; ) {
     swap(i, rand.nextInt(i));
   }
 }