1310132103: add a set function to Generator