They were chosen by impartial lottery, since there were trustees of the sanctuary and officers of God among both Eleazar's descendants and among Ithamar's descendants. 