This can be stated in active form. Alternate translation: "they received these twelve cities by the casting of lots" (See: [[rc://en/ta/man/translate/figs-activepassive]])
A random method of choosing to remove the choice from the leader's will, often done with the idea that God will decide the outcome. See how you translated this in [Joshua 19:1](../19/01.md).