42 ms·
There's a bug in your code, the chance of deleting is less than 1/6.
by m4design 13y ago
There's a bug in your code, the chance of deleting is less than 1/6.
- olympus 13y agoWhile 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.
- andrewchoi 13y agoI think the point of the post you're responding to is that the code doesn't actually delete anything.
- orangethirty 13y agoHow could it delete what is not there? Or did you really expect me to write python script with fb graph integration?