Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Monte Carlo method, calculating π | Better HN
Monte Carlo method, calculating π
(maciejczyzewski.me)
8 points · by
StylifyYourBlog
· 11y ago · 3 comments
Comments
[–]
anonova
11y ago
This is a pretty neat way to estimate pi. Rust uses this example in its std::rand documentation:
http://doc.rust-lang.org/std/rand/#monte-carlo-estimation-of...
[–]
compsciphd
11y ago
This was an interview Q on my Google interview. hated it (I ended up using Riemann sums)
[–]
valdiorn
11y ago
Curious, why did you hate it? (I use this as an interview question myself)