Random motion and analytic continued fractions