Adding a quick comparison between fortran and c++ for run time speed.
Rewrote code so that both functions try and calculate pi using the mote carlo method.
Set initial random seeds to be identical, and they achieved the exact same results.
The c++ code out performed the fortran code for a all number of iterations and optimizations.

Speed Test
Fortran Pi=    3.14065

real	0m0.207s
user	0m0.202s
sys	0m0.002s
Fortran Code
    C++ Pi=3.14065

real	0m0.038s
user	0m0.035s
sys	0m0.002s
C++ Code