def Random(self): """Generates a random variate from this distribution.""" return random.betavariate(self.alpha, self.beta)