Rules for the automated distribution of cases in courts