3 ms·
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 g
by olympus 13y ago
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.
- 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?