Curli amyloid fibers are a major constituent of the extracellular biofilm matrix formed by bacteria of the Enterobacteriaceae family. WithinEscherichia colibiofilms, curli gene expression is limited to a subpopulation of bacteria, leading to heterogeneity of extracellular matrix synthesis. Here we show that bimodal activation of curli gene expression also occurs in well-mixed planktonic cultures ofE.coli, resulting in all-or-none stochastic differentiation into distinct subpopulations of curli-positive and curli-negative cells at the entry into the stationary phase of growth. Stochastic curli activation in individualE.colicells could further be observed during continuous growth in a conditioned medium in a microfluidic device, which further revealed that the curli-positive state is only metastable. In agreement with previous reports, regulation of curli gene expression by the second messenger c-di-GMP via two pairs of diguanylate cyclase and phosphodiesterase enzymes, DgcE/PdeH and DgcM/PdeR, modulates the fraction of curli-positive cells. Unexpectedly, removal of this regulatory network does not abolish the bimodality of curli gene expression, although it affects dynamics of activation and increases heterogeneity of expression levels among individual cells. Moreover, the fraction of curli-positive cells within anE.colipopulation shows stronger dependence on growth conditions in the absence of regulation by DgcE/PdeH and DgcM/PdeR pairs. We thus conclude that, while not required for the emergence of bimodal curli gene expression inE.coli, this c-di-GMP regulatory network attenuates the frequency and dynamics of gene activation and increases its robustness to cellular heterogeneity and environmental variation.