Help for this page

Select Code to Download


  1. or download this
    sub riffle {
        splice @_, @_/2 - $_, 0, pop
    ...
        @deck = riffle @deck;
        print "shuffle #$shuffle:\n@deck\n";
    }
    
  2. or download this
    ## random-sided Riffle shuffle
    sub riffle {
    ...
        }
        return @_;
    }