Generate a generator