http://www.cartographersguild.com/showthread.php?t=1448

Another forumer's implementation of this tool, as an example of what it can do with only a small amount of tweaking (mostly to make the roughness/smoothness appear suitable for the scale, I assume).