Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  python3 -c 'from random import random; N=1000000;print(4*sum([ int(random()**2 + random()**2 <= 1.0) for i in range(N)])/N)'


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

Search: