What [Peirce] meant was that since nature evolves by chance variation, then the laws of nature must evolve by chance variation as well. Variations that are compatible with survival are reproduced; variations that are incompatible are weeded out. A tiny deviation from the norm in the outcome of a physical process can, over the long run, produce a new physical law. Laws are adaptive.