Galactic Civilizations is a turn-based strategy (TBS) game that involves leading an advanced spacefaring civilization toward galactic control (from Kardashev Type I to Kardashev Type III).[W, H] Unfortunately Galactic Civilizations I doesn't have a random generator for competing galactic civilizations. But with a little help from Microsoft Copilot, I was able to create the JavaScript program below to automatically generate a list of random opponents. Once the list is generated, you can then select the randomly chosen opponents to play in the game.
There can be up to 7 possible opponents for 6 different galaxy sizes so I recommend the following by rounding 7n/6 with n being galaxy sizes from 1 to 6.
This generator only works if you have the Altarian Prophecy expansion pack included with the Ultimate Edition.[W, G] If you are playing as the Terran Alliance, then your seven possible galactic opponents are the Drengin Empire, Altarian Republic, Arcean Empire, Torian Confederation, Yor Collective, Dominion of Korx, and Drath Legion. The last two are new civilizations added with the expansion pack. You can use the generator to randomly pick the opponent civilizations and then afterward rename the civilizations as desired.
Links are provided below on how to acquire Galactic Civilizations I: Ultimate Edition.