Auto-translated
As a temporary solution to ban factions from appearing in random towns, I can suggest manually configuring each random town using the map editor. Each random town has a parameter called "BannedRaces" in the Properties window, where you can ban specific factions.