Monte Carlo simulation of nitrogen