Joshua cast the lots for them at Shiloh in the presence of God. That’s where Joshua divided up the land to the People of Israel, according to their tribal divisions.
So the men set out. As they went out to survey the land, Joshua charged them: “Go. Survey the land and map it. Then come back to me and I will cast lots for you here at Shiloh in the presence of God.”