Hacker News new | past | 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 | Lists | API | Security | Legal | Apply to YC | Contact

Search: