[][src]Module shuffle::irs

Implementation of the Inverse Riffle Shuffle algorithm.

A Riffle Shuffle is a common algorithm used for mixing cards (see wiki).

Inverse Riffle Shuffle is an algorithm that has exactly the same properties as Riffle Shuffle, but is much more implementation-friendly.

Aldous, David, and Persi Diaconis. "Shuffling cards and stopping times." The American Mathematical Monthly 93.5 (1986): 333-348.

Structs

Irs

Implementation of Inverse Riffle Shuffle.