protected void starveRandomly(int limit){
  while (population.size() > limit) {
    int removePos=Randomness.nextInt() % population.size();
    population.remove(removePos);
  }
}

protected void starveRandomly ( int limit ) { while ( population . size ( ) > limit ) { int removePos = Randomness . nextInt ( ) % population . size ( ) ; population . remove ( removePos ) ; } }
this method can be used to kick out random chromosomes in the current population until the given limit is reached again .
