It is generated by tweaking a bunch of `if` statements until the output starts to look about right.
Reply on news.ycombinator.com