Monte Carlo methods: Difference between revisions
m
→{{header|Haskell}}
Line 1,307:
where
rnd = randomRIO (0, 1) :: IO Double
go a x =
f x y
| 1 > x ** 2 + y ** 2 = succ
|