For example, casino gambling is legal in 24 states, while sports betting is legal in 36 states. The lottery, on the other hand, is legal in 45 states plus DC, the US Virgin Islands, and Puerto Rico. Some states have legalized all three types of gambling, while others only allow one or two.