Here's a little program that tries to estimate π using a Monte Carlo method.
Be patient. :-) After an hour it should have reached 3.14.
0→I 0→O Lbl 1 If Ran# ²+Ran# ²<1:Then 1+I→I Else 1+O→O IfEnd Locate 1,1,(I÷(I+O))×4 Goto 1
Edited by Tritonio, 12 November 2014 - 02:00 AM.