Simulations for lattice spin models in statistical mechanics