The method performs chromosome's mutation, swapping two randomly chosen genes (array elements).
public override void Mutate( ) { ushort t; int j1 = rand.Next( length ); int j2 = rand.Next( length ); // swap values t = val[j1]; val[j1] = val[j2]; val[j2] = t; }