GA coding question
Hello. I'm trying to implement a simple GA using the Traveling Salesman Probem. I'm using "AI Techniques for Game Programming". For my GA code, I need to have random numbers between 0 to N (# cities). This will be a solution (chromosome). How can I have them be random and not have duplicates? Thanks for the help.
http://www.rivetcode.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement