Modification on code. This time the simulation will give us a stable or time-invarible result if the sampling is large enough.