Random formal grammar generator based on formal grammar.