cpp/numeric/random/geometric distribution

Produces random non-negative integer values $i$, distributed according to discrete probability function:



The value represents the number of failures in a series of independent yes/no trials (each succeeds with probability p), before exactly 1 success occurs.

is exactly equivalent to. It is also the discrete counterpart of std.

satisfies.