Hacker News new | ask | show | jobs
by Wingman4l7 4582 days ago
What shuffling algorithm do you use?

Here's a description of a very solid one: http://www.briggsoft.com/docs/pmavens/Technical_Shuffling.ht...

Here's an example of what can happen if you do it wrong: http://www.cigital.com/papers/download/developer_gambling.ph...

1 comments

I'm using Fisher-Yates for the shuffle algo http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle