Help for this page

Select Code to Download


  1. or download this
    use List::Util 'shuffle';
    use List::MoreUtils 'uniq';
    ...
    
    printf "shuffle1: %s\n", join(', ', sort {$a <=> $b} @shuffle1[0..10])
    +;
    printf "shuffle2: %s\n", join(', ', sort {$a <=> $b} @shuffle2[0..10])
    +;
    
  2. or download this
    shuffle1: 2, 5, 16, 17, 23, 25, 26, 27, 39, 42, 43
    shuffle2: 1, 3, 4, 5, 6, 8, 9, 10, 13, 40, 50