Directed random generation of sentences