Update rand_walk.cpp