@@ -0,0 +1,522 @@
+package practice.mathematics;%0A%0Apublic class MonteCarloPI %7B%0A%0A    public static double findPI(int number) %7B%0A%0A        double x;%0A        double y;%0A        int count = 0;%0A%0A        for (int i = 0; i %3C number; i++) %7B%0A            x = Math.random();%0A            y = Math.random();%0A%0A            if (x * x + y * y %3C 1.0) %7B%0A                count++;%0A            %7D%0A        %7D%0A%0A        return (double) count * 4 / number;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(%22Pi is %22 + findPI(5000001));%0A    %7D%0A%7D%0A

Add MonteCarloPI