גריי מאטר א Monetary Issues / The Torah's View of Gambling · יז
Gray Matter I 356
A possible exception to the halachic problems with gambling is a lottery conducted to raise funds for a charity. Rav Yosef Adler reports that Rav Yosef Dov Soloveitchik permitted purchasing a lottery ticket if the purpose of the lottery is to raise money for a charity, because the rule of asmachta does not apply to charitable contributions (Shulchan Aruch, Yoreh De'ah 258:10). Asmachta occurs only when someone does not intend to truly obligate himself, but the losers of a charity fundraiser feel comfortable relinquishing their money, knowing that it will be used for a positive purpose.