Joshua 18: 10  And Joshua cast lots for them in Shiloh before the LORD: and there Joshua divided the land unto the children of Israel according to their divisions.

Joshua divided the Land for the tribe of Judah  by casting lots before the Lord. Casting lots was like flipping a coin to decide who goes first. It seems to involve random chance. In Joshua 18 we see Joshua casting lots before the Lord. The Lord did not tell Joshua to decide about the land by casting lots. In fact, this comes on the heels of chapters of Joshua dividing the land and a history of God directing who God what area of the land. Sometimes it seems to be human wisdom and logic at work, other times it seems to be divine direction. In this case while Joshua cast lots it seems as if the expectation was that God would be at work in the casting of the lots to supersede pure chance. Can God use lot casting to make his choice? Any child can answer that quickly with, “God can do anything.” We ultimately place our faith in the Lord that He is even Lord over the casting of lots.