Card shuffles: Difference between revisions

→‎{{header|Wren}}: Updated to use new core library method.
m (→‎{{header|Phix}}: added syntax colouring the hard way)
(→‎{{header|Wren}}: Updated to use new core library method.)
Line 2,438:
for (i in 0...iterations) {
while (pile.count > 0) {
var cards = Math.min(pile.count, .min(1 + r.int(twentypc))
pile2 = pile[0...cards] + pile2
pile = pile[cards..-1]
9,482

edits