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

While the code could use streamlining by only drawing one randint and comparing it to a static number, the probability of orangethirty's way of doing it still gives the correct probability of 1/6. Think of it as two dice, the chance of rolling doubles is 6/36 = 1/6.


I think the point of the post you're responding to is that the code doesn't actually delete anything.


How could it delete what is not there? Or did you really expect me to write python script with fb graph integration?




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

Search: