incorporate randomWalk into gendata, write everything to CSV