In a recent paper (Asci et al., 2008) it has been shown that certain random continued fractions have a density which is a product of a beta density and a hypergeometric function 2F1. In the present paper we fully exploit a formula due to Thomae (1879) in order to generalize substantially the class of random continuous fractions with a density of the above form. This involves the design of seven particular graphs. Infinite paths on them lead to random continued fractions with an explicit distribution. A careful study about the set of five real parameters leading to a beta-hypergeometric distribution is required, relying on almost forgotten results mainly due to Felix Klein. Theorem 2.2. Suppose that r / ∈ −N. Then (p, q, r) ∈ P if and only if 1. either r ≥ 1, r − p − q ≤ 0 and p, q ≥ 0; 2. or r ≥ 1, r − p − q ≥ 0 and r − p, r − q ≥ 0; 3. or r < 1, r − p − q ≤ 0, r − p, r − q ≤ 1 and (p, q, r) is in S; 4. or r < 1, r − p − q ≥ 0, p, q ≤ 1 and (r − p, r − q, r) is in S.Remark. The most obvious case of positivity is p, q, r > 0. It can be checked that it fulfills the sufficient conditions above to be in P. The same holds for r − p, r − q, r > 0.Proof. From Klein's Theorem 2.1 a necessary condition for (p, q, r) ∈ P is X(p, q, r) = 0. We now consider three cases.1. If r − p − q ≥ 0 and r − p or r − q is −n with n ∈ N then