Quote Originally Posted by A Roxxor View Post
How does this work? Are you selecting from a table of characters randomly? Or setting the char values to random integers?
It starts off with all random chars between 'a' and 'z' and some punctuation; then it loops through each char each iteration and uses a Random object to determine whether to "mutate" that character or not based on the mutation rate entered. If by the end of all the mutations, the string as a whole is closer to the original string entered, it becomes the new "most fit" string.