Generation of samples from priors