random.Geometric function

Draw a random sample from a Geometric distribution