I've been making hand-drawn maps for a long time, but was wondering recently if there's a way to draw a simple line or shape and to run a script/action/plug-in to add complexity to it.

Here's a link to what I mean. Basically, I'd like to draw a vague coastline or continent, then let the system automate my desired level of complexity. In the example, I hand-drew each of those, but the idea is that I could draw the line/object in Step One, then run the script/action to get the results in Line 2, then run it again to get the results in Line 3.

I generally work in Photoshop with (obviously) raster files, but I'd be keen to learn Illustrator if the latter has the ability to do this.

Thanks!