Then Joshua cast lots for them in Shiloh before the Lord. There Joshua divided up the shares of the land for the Israelites.