Card shuffles: Difference between revisions
m
J: simplify overhand shuffle
m (J: simplify overhand shuffle) |
|||
Line 156:
<lang J>NB. cut rotates the deck to an arbitrary position
overhand=:
NB. Gilbert–Shannon–Reeds model
Line 170:
6 10 13 8 2 14 15 9 19 3 18 16 11 1 12 17 5 4 0 7
1 overhand i.20
17 18 19 13 14 15 16
10 overhand i.20
=={{header|Java}}==
|