MathGen A simple program that produces something like this: PS H:\Sources\Release Builds\C#\MathGen> .\MathGen.exe 4 Maximum depth: 4 Resulting expression: -4 ^ -2 / (1 - 7) + 8 - 2