Find a fair game with 50-50 odds of losing everything or doubling the money.
When you lose, double your bet. When you win, take the winnings and reset your bet to the initial stake.
This is why roulette wheels have extra slots (0 and 00) that you can’t bet on.