Statistical aspects of simulations