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:
say /*a blank line, just for the eyeballs.*/
do j=1 for times%chunk
do chunk /*do Monte Carlo, one chunk
if random(0,limit)**2 + random(0,limit)**2 <=limitSq then !=!+1
end /*chunk*/
|