Another (of the many) ways to calculate π would be to pick a random coordinate in a square, then see if it falls within the inscribed circle (using x²+y²=r²).

]]>He's just trying to make a laugh of spam (but ruining his fun is great too )

]]>```
PPr[n_, b_] :=
(
c = 0;
Do[If[GCD[Random[Integer, {1, b}], Random[Integer, {1, b}]] == 1, c++;], {i, 1, n}];
c/n
)
```

6/pi^2=0.607927

As you see, this method is unusable, because for approximately 3 digits of 6/pi^2 you need >10^6 tests.]]>

* 1359 / 2475 pairs were relatively prime.

* pi is approximately 3.30562434615]]>