def _makechromosome(self):
        "makes a chromosome from randomly selected alleles."
        return [random.choice(self.alleles) for gene in range(self.length)]
makes a chromosome from randomly selected alleles.
recipes/Python/199121_a_simple_genetic_algorithm/recipe-199121.py