1 Chronicles 24:5

5 They were assigned [periods of service] by lot, the one group equally with the other, since both the descendants of El'azar and the descendants of Itamar had officers of the sanctuary and officers of God.

1 Chronicles 24:5 Meaning and Commentary

1 Chronicles 24:5

Thus were they divided by lot, one sort with another
Which course should serve first, and which next, and so on; and who should be the chief to each course; which course was to serve a week, and then go out; and this method was taken to prevent envy, strife, and contention about precedence:

for the governors of the sanctuary;
or of the holy things, or who presided in things ecclesiastical:

and governors of the house of God:
or rather "governors of God", appointed by him judges in civil things:

were of the sons of Eleazar, and of the sons of Ithamar:
there were, of both families, some employed both in sacred and civil things, and who presided in each.

1 Chronicles 24:5 In-Context

3 David, together with Tzadok from the descendants of El'azar, and Achimelekh from the descendants of Itamar, arranged them in divisions for service.
4 There were more men who were chiefs found among the descendants of El'azar than among the descendants of Itamar; therefore there were sixteen divisions of the descendants of El'azar, headed by clan leaders, and eight divisions of the descendants of Itamar, according to their clans.
5 They were assigned [periods of service] by lot, the one group equally with the other, since both the descendants of El'azar and the descendants of Itamar had officers of the sanctuary and officers of God.
6 Sh'ma'yah the son of N'tan'el the secretary, one of the L'vi'im, recorded them in the presence of the king, the officers, Tzadok the cohen, Achimelekh the son of Evyatar, and the clan leaders of the cohanim and of the L'vi'im - with two clan divisions taken from El'azar for each one from Itamar.
7 The first lot drawn was for Y'hoyariv, the second for Y'da'yah,
Complete Jewish Bible Copyright 1998 by David H. Stern. Published by Jewish New Testament Publications, Inc. All rights reserved. Used by permission.