51 All of those territories were given out by using lots at Shiloh. The lots were drawn out by the priest Eleazar and by Joshua, the son of Nun. The leaders of the tribes of Israel helped them. The lots were drawn out in front of the LORD at the entrance to the Tent of Meeting. So the work of dividing up the land was finished.