Wait, I actually just thought about this more fully. Does this actually work? self.alpha is often going to be a tensor value, which we probably cannot pass to sbeta.ppf and probably don't want to anyway. I think random has to either be a theano tensor or take parameters.