Sampling the generator