Metropolis Algorithm
If ?Eɘ or ?E=0 we accept the new configuration
???????????????????????????? old
???????????????????????????? new
we accept the new configuration with probability p=exp(- ?E/kT)
choose a random number 0 ? r ?1
if r ? p then accept new configuration
if r > p then keep the old configuration
repeat over and over again