31 As their brothers the descendants of Aaron did, they also cast lots in the presence of King David and of Zadok, Ahimelech, and the heads of the families of the priests and Levites—the family heads and their younger brothers alike.
1 Chronicles 24:31 Cross References - BSB
Numbers 26:56
56 Each inheritance is to be divided by lot among the larger and smaller tribes.”
1 Chronicles 24:5-6
5 Thus they were divided by lot, for there were officers of the sanctuary and officers of God among both Eleazar’s and Ithamar’s descendants.
6 The scribe, Shemaiah son of Nethanel, a Levite, recorded their names in the presence of the king and of the officers: Zadok the priest, Ahimelech son of Abiathar, and the heads of families of the priests and the Levites—one family being taken from Eleazar, and then one from Ithamar.
1 Chronicles 25:8
8 They cast lots for their duties, young and old alike, teacher as well as pupil.
1 Chronicles 26:13
13 They cast lots for each gate, according to their families, young and old alike.