private void MutateBit(int chromosome, int threshold) { var random = new Random(); var dice = random.Next(0, 1000); if (dice <= threshold) { Chromosomes.Set(chromosome, !Chromosomes.Get(chromosome)); } }