I am doing a m/m/2/2 discrete event simulation. The result is same as the theoretical value, which means the program is correct (in Ubuntu, g++). However, when I tested the code again in windows (visual studio), the result is only correct when number of trials is less than 10000. I debugged for a very long time and finally find I have to use I am doing a m/m/2/2 discrete event simulation.