Re:A random dungeon generator in C, small enough to fit on a...
by tromp on Tuesday March 05, 2019 @10:48AM
(#19311264)
The maze generator at http://tromp.github.io/pearls.html#maze is similarly accompanied by a link to a book chapter documenting the obfuscation.
https://www.a1k0n.net/2011/07/20/donut-math.html