Post
Great article! Maybe I missed something, but for me, Q always replaces K in the final one-card example. I think this is because, in SimpleReservoir, *n* starts from 0. On the second deal, it's 1, so `floor(random() * this.n)` always evaluates to 0, resulting in a replace github.com/samwho/visua...
github.comgithub.com
Ahh great spot, thank you. I’ll take a look at this when I get a chance and put a fix out :)
0 reposts1 like
No replies yet.