A comparison between random and stochastic modeling for a SIR model