The present value of a stochastic perpetuity and the Gamma distribution