private void parentRoulette() {
		// TODO Auto-generated method stub
		long totalFitness = 0;
		for(Chromasome chro : population){
			totalFitness += chro.getFitness();
		}
		mu = totalFitness / populationSize;
		long varHold = 0;
		//long selection = (long)(rand.nextDouble() * totalFitness);
		for(Chromasome chro : population){
			//int numSlots = (int)((double)(chro.fitness)/(double)(totalFitness) * 100);
			double num = (chro.getFitness() - mu);
			varHold += (num * num);
			/*for(int i = 0; i < numSlots; i++){
				rouletteTable.add(chro);
			}*/
		}
		Variance = varHold / populationSize;
		stdDeviation = Math.sqrt(Variance);
		while(parents.size() < populationSize){
			long selection = (long)(rand.nextDouble() * totalFitness);
			int index = 0;
			while(selection >= 0){
				Chromasome selected = population.get(index);
				selection -= selected.getFitness();
				if(selection<0){
					parents.add(selected);
				}
				index++;
			}
			//parents.add(rouletteTable.get(rand.nextInt(rouletteTable.size())));
		}
		
	}