if (!randomOrder) {
iEnum = collection.elements();
} else {
Vector vect = new Vector(collection);
Collections.shuffle(vect, ToolBox.getRandom());
iEnum = vect.elements();
}
}
/** True if there are more elements to enumerate */
public boolean hasMoreElements() {
return iEnum.hasMoreElements();