def start(): var x, y, r while x>0: prob(1,3): x=x+1 else: x=x-1 y=x-1 while y>0: r = unif(0,2) y = y - r tick 1