--
-- more times:
  1. Roll to find the nucleotide to mutate.
  2. Depending on the roll:
    • If the roll is between 1 through 18, inclusive, select that nucleotide.
    • Otherwise, skip mutation and the genome again.
  3. Roll to see what kind of mutation to perform.
  4. Depending on the roll:
    • If the roll is between 1 through 14, inclusive, perform a transition on the selected nucleotide.
    • If the roll is between 15 through 17, inclusive, perform a complementing transversion on the selected nucleotide to the base it pairs with.
    • Otherwise, perform the other transversion on the selected nucleotide.
  5. Select the correct amino acid for the new codon.
  6. Depending on the change to the codon:
    • If the mutation caused a change in the amino acid being coded, then it and start again with the last successful generation.
    • Otherwise, this genome for the next generation.