Pattern: PShuffle
Shuffled list.
Arguments
values (list)
: List of values
repeats (int)
: Number of times to re-shuffle and iterate
Example output
>>> p = PShuffle([ 1, 2, 3 ])
>>> p.nextn(16)
[1, 3, 2, 3, 2, 1, 2, 3, 1, 2, 3, 1, 1, 2, 3, 1]
Shuffled list.
values (list)
: List of values
repeats (int)
: Number of times to re-shuffle and iterate
>>> p = PShuffle([ 1, 2, 3 ])
>>> p.nextn(16)
[1, 3, 2, 3, 2, 1, 2, 3, 1, 2, 3, 1, 1, 2, 3, 1]