| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
[lang: crystal] |
Sorry, something went wrong.
|
Perhaps more idiomatic way to count points inside the circle would be pi_count = n.times.count do
in_circle(rand, rand)
endbut other than that the code looks good to me. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR adds the Monte Carlo methods in Crystal.