Hacker Newsnew | past | comments | ask | show | jobs | submit | karmadude's commentslogin

Here is a demo of shuffling using a combination of Hindu & Riffle shuffle http://karmadude.github.io/CardShuffler/

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.


To paraphrase, 7 is reasonably able, 14 is guaranteed.

Knuth cites this in TAOVP vol 2, from Aldous And Diaconis, AMM 1986, pp 333-348.


A few years back, my wife and I reset our lives: left our jobs, sold everything, were down to two bags each, and moved to India for a year. Since then we have kept things simple, and has made life more flexible and less stressful.


Great decision.


After reading this topic "India is drowning in its own excreta" on this site, I don't think I would live in India anytime soon.


hehe, it wasn't that bad. But now I live in San Francisco, and if not visually drowning, it sure smells like human and dog excreta everywhere!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: