Mutates the DNA of the individual. Mutation for genetic algorithms means flipping the bits of the chromosome. For genetic programs, mutation means changing nodes of the program tree.
Note that mutation is not guaranteed to occur but is dependent on the
MutationProbability. The function calls the
OnMutation event and then DoMutate method.
The Mutate method is called by the Reproduce method. The function returns true if mutation occurred.