Evolutionary algorithm: Difference between revisions
→{{header|m4}}
Line 4,552:
=={{header|m4}}==
This is written in POSIX m4, but seems to run
You may, like I, lose patience waiting for it to get that last character. But I have tested that the program terminates, by running it with a one-character target. :)
Note that it writes to a file called ‘__random_number__’. The random number generator here is the best I have come up with that works in all the m4 implementations I have installed. (Something using sysval did not work in OpenBSD m4.)
This is not the best use of m4, and I am far from an m4 guru, but it
<lang m4>divert(-1)
|