This generator reminds me of the Paper generator by some MIT students..
http://pdos.csail.mit.edu/scigen/
..much more funny and even pdf direct output :D
http://pdos.csail.mit.edu/scigen/
..much more funny and even pdf direct output :D
Of course, you could imagine building a program that creates perfectly compileable, yet randomly generated programs. These guys actually did it to test gcc's handling of the volatile keyword: http://www.cs.utah.edu/~regehr/papers/emsoft08-preprint.pdf