Monte Carlo methods: Difference between revisions
Content added Content deleted
(→{{header|REXX}}: re-introduced a line that was elided previously.) |
m (→{{header|REXX}}: elided one too many hyphens.) |
||
Line 1,525: | Line 1,525: | ||
say /*a blank line, just for the eyeballs.*/ |
say /*a blank line, just for the eyeballs.*/ |
||
do j=1 for times%chunk |
do j=1 for times%chunk |
||
do chunk /*do Monte Carlo, one chunk |
do chunk /*do Monte Carlo, one chunk at-a-time.*/ |
||
if random(0,limit)**2 + random(0,limit)**2 <=limitSq then !=!+1 |
if random(0,limit)**2 + random(0,limit)**2 <=limitSq then !=!+1 |
||
end /*chunk*/ |
end /*chunk*/ |