Not purposeful, but not random
To use Ernst Mayr's (1965) well-known distinction, it is the "proximate" functional effects which result from any change in the organism-environment relationship that are the causes of the "ultimate" (transgenerational) selective changes in the genotype, and the gene pool of a species.
