random walk altered in accordance to the max. depth of a root node