Determines probability using the monte carlo method (determining the chance of something happening by running a computer algorithm a bunch of times and counting the number of 'successes')