protected override IPhenotype CreateRandomPhenotype() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < RNG.Next(1, 10); i++) { sb.Append((char)RNG.Next(32, 122)); } HammingPhenotype p = new HammingPhenotype(new StringGenotype(sb.ToString())); return(p); }
protected override IPhenotype CreatePhenotype(IGenotype genotype) { var phenotype = new HammingPhenotype(genotype); return(phenotype); }