How Luck Shapes Outcomes in Games and Nature