Ludwig Boltzmann used probability theory to demonstrate that for any given configuration of atoms, the mathematical value of entropy is related to the number of different possible ways you can achieve a particular configuration.