Direct donation instead of a raffle ticket
More reaches the cause and it counts as sadaqah
Giving the ticket price directly to the organisation means the full amount reaches the cause rather than part funding a prize, and the giving carries the reward of charity, which a wager does not.
If an organisation you support runs raffles, suggesting an auction or a donor gift for everyone is a constructive alternative.