Yes, buying lottery tickets is "illogical" in the colloquial sense, i.e. not advantageous -- given certain generally accepted propositions about what is advantageous from a personal finance perspective -- BUT when one plays on such a small scale, as was mentioned before, this is just not meaningful from a practical perspective.
If one looks at it from a psychological perspective, even *big* lottery players may be gaining more from their lottery playing than they are paying (i.e. in happiness, or variants thereof).
The one who remarked a trader who plays the lottery is extremely foolish, or something along those lines, is correct IF you're talking about a trader who views his lottery playing as an endeavor similar to his trading -- i.e., one who views his lottery playing as a "serious" money-making venture.
Most traders don't think that when they play the lottery!
So, basically, the whole objection to the lottery, and calling lottery players stupid, is predicated on the notion that lottery-playing is a purely financial endeavor and carries no other rewards for the player. This is false in many cases. (Although, of course, the psychological benefits are related to the possibility of financial rewards. Again, though, this doesn't mean that the realization of these psychological benefits is dependent on actually winning. Although that helps!!!!!!!!!!!

)
A simple answer to the question of whether I gamble of play the lottery: I rarely gamble, though I have gained money rather than lost money if I tally my lifetime total. This may be a function of the limited extent of my gambling rather than my prowess, though! My greatest skill is walking away from the table, I think.
And I only play the lottery once in a great while.
Sometimes I think that just a *little* bit more of a gambler's spirit might actually improve my trading...