It is difficult to achieve an orderly arrangement of the molecules of a gas because…