Randomized depth-first traversal | ScratchStats