Feeds:
Posts
Comments

Archive for March, 2009

Knuth Shuffle

How to shuffle a deck of cards in a fast efficient way? Or, given an array of length n (e.g. 10000) and natural numbers from 1 to n, how to reorder the data series to be as random as possible (random permutation)? This is a classic computer science question, and it makes a good technical [...]

Read Full Post »