Samuel called the people together to Yahweh to Mizpah;
"Now present yourselves before the Lord by your tribes"  (1 Samuel 10:19).  This was the procedure for the casting of lots, recalling what Israel did upon another occasion following the battle of Ai when Achan was discovered by lot  (Joshua 7:16).  Other examples of casting lot are in the Book of Jonah in which the mariners found the guilty Jonah and the example in the Book of Acts, in which the apostles selected a successor to Judas (Acts 1:26).