(I don't claim it's pretty, converges fast, scrimps on memory, or produces repeatable results.)die grep(rand()**2+rand()**2<1,1..4e6)/1e6
In reply to Re: Golf -- compute PI
by Dr. Mu
in thread Golf -- compute PI
by Ovid
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |