Study: When allocating scarce resources with AI, randomization can improve fairness