Automate monte carlo average calculation