Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Shuffling.
I heard someone say once that we have to shuffle a deck of cards 7 times to get a good shuffle. This demo was setup to try to simulate how we shuffle cards, and turns out shuffling around 5 times gives a pretty good shuffle.
Knuth cites this in TAOVP vol 2, from Aldous And Diaconis, AMM 1986, pp 333-348.
I heard someone say once that we have to shuffle a deck of cards 7 times to get a good shuffle. This demo was setup to try to simulate how we shuffle cards, and turns out shuffling around 5 times gives a pretty good shuffle.