I know nothing about programming but my thought would be to have "markers" for things like high points, low points, wet points, lakes, and other things like that. Then you could just connect the markers with a straight line. Additional marker points means more meander in the line. How one would do this I have no idea...I just know how I might approach it (like a theory). Cheers.