[1]: https://github.com/breandan/galoisenne/blob/master/latex/laf...
It's quite efficient, able to generate the 10^100th element in ~a second on 2013 hardware. It also groups the generated values by size, so you can e.g. randomly sample among ASTs with N nodes.
(For context, I'm completely new to this topic.)
(generating random trees the naive way tends to produce the occasional huge tree amidst huge numbers of tiny trees)
Concrete examples: Docker containers, PDF parts, POSIX filesystems, Scheme sources, SVGs, x86 objects, etc.