Bacteria live in unpredictable environments, which deeply affect their evolution. Changes in nutrients abundance, for example, make the population grow and shrink. This, in turn varies the impact of single birth and death events on the genetic makeup of the population. Studying the coupled effect of these sources of randomness, we show that it promotes the survival of disadvantaged strains (such as public good producers). Our results are published on Physical Review Letters.