Random Walk 1D

x = 2
while true:
    x = x + 1 {1/2} x - 1
end