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