Measurement of isothermal pressure of lattice gas by random walk