Molecular distribution and equation of state of gases