import random

# Programmer: Sriram Pemmaraju
# Date: Feb 10, 2012
# Version 1: moves the person one step, either left or right, at random

location = 0 # tracks the person's current location
step = random.randint(0, 1) # returns 0 or 1, each with prob. 1/2

# Adjusts the random number to be either -1 or +1
if step == 0:
    step = -1
    
location = location + step # updates location
print location
