Here’s an example:
edit: All variables are local to the *Construction Script *and the Distance Between Points is set to 100. The second loop averages the locations so the spline component’s points end up centred - this step is optional, of course.
It can be easily fleshed out with extra features, accumulating the overall drift as you step through the loop will produce more intricate and interesting paths.