# Truncated geometric distribution def f(): var c, b b = 0 while b > 0: prob(1, 1): c = 1 b = 0 tick 1 else: c = 0 tick 1 tick 2 tick 1