Card shuffles: Difference between revisions
Content added Content deleted
Line 1,142: | Line 1,142: | ||
def iterations: 10; |
def iterations: 10; |
||
deck |
|||
| "Starting deck:", |
|||
⚫ | |||
"Riffle shuffle with \(iterations) iterations:", |
|||
riffle(iterations), |
|||
⚫ | |||
overhand( |
overhand(iterations), |
||
"\nStandard library shuffle with 1 iteration:", |
"\nStandard library shuffle with 1 iteration:", |
||
(deck | knuthShuffle) # shuffles deck in place |
|||
knuthShuffle |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{output}} |
{{output}} |