It’s interesting how many times in the Bible issues are resolved, people/animals are chosen, transactions are made - using “lots” - From Leviticus 16:
“Aaron is to offer the bull for his own sin offering to make atonement for himself and his household. Then he is to take the two goats and present them before the Lord at the entrance to the tent of meeting. He is to cast lots for the two goats—one lot for the Lord and the other for the scapegoat. Aaron shall bring the goat whose lot falls to the Lord and sacrifice it for a sin offering. But the goat chosen by lot as the scapegoat shall be presented alive before the Lord to be used for making atonement by sending it into the wilderness as a scapegoat.”
And other times, the Lord simply instructs directly, or uses other methods - from Judges 7:
“So he brought his soldiers down to the water, and the Lord told Gideon, “You are to cull out everyone who laps up water with his tongue like a dog from everyone who kneels to drink.” The contingent of soldiers who lapped water with their hands to their mouths numbered 300 men, but everyone else kneeled to drink water.”