def draw_from_prior(self):

        if self.prior_type == 'flat':
            return rd.uniform(self.prior_range[0], self.prior_range[1])

        elif self.prior_type == 'gaussian':
            within_bounds = False

            while not within_bounds:
                value = rd.gauss(self.mu, self.sigma)
                # Check for boundaries problem
                within_bounds = calue_within_prior_range(value)

            return value
Draw a random point from the prior range considering the prior type
dataset/ETHPy150Open baudren/montepython_public/montepython/prior.py/Prior.draw_from_prior