The lottery is a game of chance wherein numbers are drawn and a prize is awarded. Although it involves gambling, some governments outlaw the lottery, while others endorse or regulate it. There are a few key differences between lotteries and other forms of gambling. In general, lotteries are less likely to be regulated than other forms of gambling, such as sports betting. Therefore, it’s important to understand the legality of lotteries before you enter one.