The generation of tumor heterogeneity in vivo