Function to select a phenotype in a population.