Fisher-Yates-Durstenfeld Shuffle

added by BlackWasp
1/2/2013 6:03:07 PM

0 Kicks, 84 Views

Sometimes it is necessary to randomise the order of a sequence of values. The Fisher-Yates algorithm provides a paper-based method, which was later computerised by Richard Durstenfeld. This article implements the algorithm as a custom LINQ operator.