Бкс пиф золото
This is done by listing the populations of the Empire greater than ten million in size in descending order of population size and working through the list. Obviously this favours the systems in which larger pops are located. If the entire list is checked and no pop is selected, the system in which the largest pop is located will be used. Once the system is selected, the program looks for suitable surveyed system bodies without an existing colony orbiting the same star as the selected population with an orbital distance no greater than 80 AU.
On the first run through, the program checks for those system bodies which have either 25, tons of Duranium or 25, tons of Sorium at an accessibility of 0.