Interface the random generator with the parser