Do you have to give maaser on money that was won through gambling?
Read this other question to explore whether gambling is permitted at all.
Various rabbis and teachers of mine, over the years, have agreed that gambling is permitted in certain situations (state lotteries, large corporate owned casinos, etc.)
These same rabbis and teachers advised me to take maaser out of winnings after every "session" of gambling.
The definition of "session" is subjective, but this is typically what I call a "session"
one lottery ticket (even if several "draws" are purchased on one ticket)
one "visit" to a city which has casinos (even if that visit is several days long)
If you have a casino in/near your hometown, then perhaps it would be prudent to take maaser every time you walk out of a casino with more money than you walked in with.
That's like asking if you give maaser on stolen money, therefore the answer would be, No. You must return the money. Mishna Berura writes that gambling is avak gezel (M"B 322).