On The Inner Workings Of Monte Carlo Codes