Gambling does not equal spewing your money @dice and roulette.
Can it be profitable long term? Sure.
Lets say you flip a coin with your friend, and every time he wins - you pay him 1$, but if you win - he pays you 1$ and 10 cents. Does that qualify as gambling? Yes - there is a a) wager with a something of value 2) even with the uncertain outcome 3) prize
Why will it be profitable for you longterm in that example? Because odds are on your side.
So yes, certain types of gambling can be profitable longterm