HTML5 rewrite of mapgen2. Abandoned for a variety of reasons. Live demo; click to generate a new one:

Bug: sometimes two rivers are parallel to each other and connect instead of staying separate:

Bug: sometimes rivers go through lakes:

Bug: sometimes it doesn’t work at all: