Example #1
0
 public void Mutate(Genome genome)
 {
     for (int i = 0; i < genome.GetGenes().Count; i++) {
         if (RandomClamped() < MUTATION_RATE) {
             genome.SetGen(i, genome.GetGen(i) + (RandomClamped() * MAX_PERBETUATION));
         }
     }
 }