Generify sampler