A lottery ticket and a casino table are different rooms and the same question. Money is risked in hope of a gain that comes because others lose, or because the house keeps a share. Proverbs 13:11 sets vanity opposite labor (King James Version). A small stake is still a steward's stake.
Is a lottery a different moral question from a casino?
The furniture is different. One is a counter and a drawing. The other is a room built so that play continues. In both, you hand over money and hope to receive more than you handed over, and the more has to come from somewhere. It comes from other players' losses or from a house that keeps part of the pool. Labor did not produce it. A gift was not given to you. A good was not sold. Proverbs sets the two paths next to each other: wealth gotten by vanity shall be diminished, but he that gathereth by labour shall increase (Proverbs 13:11, King James Version). The proverb is not a tax code for casinos. It is a description of wealth that arrives without that gathering. A casino and a lottery both advertise that path.
Does a small amount change the question?
People say the ticket was only a few coins, or the chips were only what they could afford to lose. Jesus says the one who is faithful in least is faithful also in much, and the one who is unjust in least is unjust also in much (Luke 16:10, King James Version). Least is still a test of faithfulness. The phrase 'money I can afford to lose' already admits the loss and then treats afford as the standard. The standard in the text is faithfulness, not spare change. A steward's question survives a small number. Whether that faithfulness, coveting, and the love of money are the right headings is argued on gambling, coveting, and money, not repeated here.
What if the poster says the money helps a public cause?
Read the poster, then read the proverb again. A school, a hospital, or a veteran's fund named on the ticket does not turn the purchase into labor, and it does not turn it into the cheerful giving Paul describes to the churches. You may give to a school by giving to a school. Buying a chance is a different transaction, even if a fraction later arrives at a good address. Do not use the fraction to rename the transaction. The sin question, including the fact that no verse uses the modern label, is handled on is gambling a sin so this page does not pretend the poster settles it.
What if I can stop whenever I want?
Being able to stop shows that you are not, today, the person who is mastered. It does not show that the act was faithful while you were doing it. Paul says he will not be brought under the power of any, in a chapter about the body, and that line is easy to boast with before the power has you. If stopping has already failed, you are past the ticket question. You need people who will restore you in meekness and who will not quietly fund the next loss. That help is described on helping someone who gambles. Do not practice with money you call small until you need that page.