I’d like to generate completely random piece of html source, possibly from a grammar. I want to do this in python but I’m not sure how to proceed — is there a library that takes a grammar and just randomly follows its rules, printing the path?
Ideas?
It’s quite easy to roll your own random html generator that looks very much like a top-down parser. Here’s a base!