Hacker News new | comments | ask | show | jobs | submit login

You could try R. This ends up being a pretty straightforward one-liner:

  sum(runif(10^6, 0, 1)^2 + runif(10^6, 0, 1)^2 < 1) / 10^6 * 4



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: