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