The idea is to throw a bunch of random rooms onto the map, have them repel each other so they aren't overlapping, and then connect them with hallways.