It's only a sin if you're harming yourself , your family or any body else in your environment due to your gambling activities . Religions have mixed up definitions of sins and prohibited deeds that are enlisted in their holly books . That does differ from a religion to another , but i'd prefer believing my own definition that a sin is something that we can apply the right or wrong rule on it and that it's level of danger could affect not only your present , but your future or somebody's else present and future .
As long as we are not harming our self or anyone around us, playing gambling is not a sin. I strongly believe that it is not a sin but people who plays gambling make it looks like a sin. Their addiction in gambling has made them change and sometimes the change is just too much that their addiction had lead them to do bad things. Other countries seriously take gambling as a sin but some has treat as a source of income in which some people by playing relays this happiness/
gambling considered as a sin due its unfair system in there. it's indeed there's something called provably fair where claimed as a technology to keep between the casino earnings and player winnings always fair. but behind all of it there's a lot of people suffering lost and basically it's given to the chosen one who lucky enough to win. it's random indeed and fair mathematically but not fair socially , that's what i think.