A model for the distribution of individuals by species in an environment