All species, from zebrafish to humans, possess a genetically diverse collection of traits that allow them to adapt to changing environments. Yet scientists do not fully understand how organisms reach a state of optimal diversity—just enough variability to respond to environmental risks but not too much to function properly.