Some games have good map generators, like Civilization. Dungeon generators are never good. Sure, Diablo had random everything, but the map design itself wasn't so random. Anyway, if I could figure out the way that Civilization generates maps, then I would write it for you, but I wouldn't do it without a preset algorithm, sorry.