You probably find a different solution each time because random numbers are used, and the computation time is also different each time. The rules are explained in the computation method page , but they are briefly explained here. Then, the probability of stopping the computation before finding a solution and the probability of non-terminating computing becomes higher. However, if you see a lower value, the computation has been terminated without finding any solution. If you are interested in the method of finding a magic square using CCM, see the computation method page .
References See the section of references in the home page to see notes.
The source program of the above applet is here. However, this applet is the worst in the sense of object oriented programming for the sake of shortening its loading time. That means that everything is packed into one class.