}
public static void randomlyAddGeneratedChromosomes(List<Chromosome> chromosomeList) {
int numChromosomesToAdd = (int)Math.round(Math.sqrt(chromosomeList.size()) * Math.random() * Math.random());
if(chromosomeList.size() > 0) {
Chromosome aChromosome = chromosomeList.get(0);
for(int i=0; i<numChromosomesToAdd; i++) {
try {
int insertionIndex = (int) (Math.random() * chromosomeList.size());
chromosomeList.add(insertionIndex, aChromosome.generateRandomChromosome());
} catch(RuntimeException ignore) {}
}
}
}