Commentators explain that casting lots for gate assignments was a method of ensuring fairness. The phrase "as well the small as the great" indicates that family size, wealth, or seniority did not influence the assignments. The lot removed human favoritism, affirming that all families had an equal and divinely appointed opportunity to serve.