shuffle {shuffleCI} | R Documentation |
Riffle Shuffle
Description
This function simulates a standard riffle shuffle of a deck of 52 playing cards.
Usage
shuffle(deck)
Arguments
deck |
A list of numbers. 1:52 would simulate a deck of cards in sequential order. |
Details
The algorithm is based on the Gilbert-Shannon-Reeds method.
Value
Returns a shuffled list (i.e. deck)
Author(s)
Kyle Caudle
References
Gilbert, E. (1955). Theory of shuffling. Technical memorandum, Bell Laboratories.
Examples
shuffle(1:52)
[Package shuffleCI version 0.1.0 Index]