Monte Carlo simulation of a gas-sampled hadron calorimeter