Draws a single random value from this geometric distribution using inverse transform sampling.
a random non-negative integer representing the number of failures before success.
the source of randomness.