Mpi, Monte Carlo Simulation, Mpi4py.
num_samples_per_proc * size Calculates the total number of samples by multiplying the number of samples per process by the total number of processes. local_count = monte_carlo_pi(num_samples_per_proc) Each process runs the monte_carlo_pi function independently to simulate its portion of the samples