@rnd_geometric(p:int)

returns a random generator that produces integers following a geometric discrete distribution:

    P(i | p) = p (1 - p)^i,    i  ≥ 0.


See @rnd_bernoulli for a description of random generators.