://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/HashSet.html" title="class or interface in java.util" class="external-link">HashSet</a>&lt;<a href="District.html" title="class in metrocs.redistricting">District</a>&gt;</span>&nbsp;<span class="element-name">generateDistricts</span><wbr><span class="parameters">(<a href="Region.html" title="class in metrocs.redistricting">Region</a>&nbsp;theRegion,
 int&nbsp;numDistricts)</span></div>
<div class="block">Utility: Apply a generate-and-test al