Simulating a random-walk