Diverse stochasticity leads a colony of ants to optimal foraging.