import math, os randomize() const target = "METHINKS IT IS LIKE A WEASEL" alphabet = " ABCDEFGHIJLKLMNOPQRSTUVWXYZ" p = 0.05 c = 100 proc random(a: string): char = a[random(a.low..a.len)] proc negFitness(trial): int = for i in 0 ..