Laws and chances in statistical mechanics