I need help!

Create a program that simulates a random walk. It starts with
position 0. If a generated random number is an odd number, it moves to
the right (add 1), if the random number is an even number, it moves to
the left (subtract 1).

Step 1 : Set random number seed to 14161. Receive the number of iterations to be executed.
Step 2 : Display the current location (See the output example).

Step 3 : Generate a random number. If a generated random number is an

odd number, move to the right (add 1), if the random number is an even

number, move to the left (subtract 1).

Step 4 : Repeat step 2 and step 3 for user specified times.
You already posted a topic here:
http://www.cplusplus.com/forum/general/126552/
Please be patient, and do not post more than once.
Topic archived. No new replies allowed.