Monte Carlo simulations and generation of the SPI response