In many states, players pay for a ticket for a chance to win a prize by matching numbers picked at random by machines. The odds of winning a lottery are much smaller than getting struck by lightning or becoming a billionaire, so most people are not wildly successful at it. But the lottery is still…