sample_params function

Sample parameter values from priors