Buildings Maker is a Blender addon from BoUBoU that picks elements randomly to create buildings, or any vertical elements. Each building is assembled from bases, which repeat until you reach the last floor, rooftops, and addons you can plug onto the building.
The workflow starts with your own libraries of parts. Once those are made, Buildings Maker can randomly generate as many buildings as you want. A tutorial walks through how to use it, and documentation is included.
The addon supports a wide span of Blender releases, from 2.9, 2.91, 2.92, and 2.93 through the 3.x series and up to 4.0, 4.1, and 4.2. It is distributed under the GPL license, and a demo video is available. On superhive it holds a five-star rating from a single review.