Skip to content
  • Nikodemus Siivola's avatar
    better SHUFFLE · 64a631d9
    Nikodemus Siivola authored
     * Thanks to Sean Ross: implement the Fisher/Yates/Knuth algorithm
       correctly.
    
     * As penance, specialize for lists as well: travel along the list,
       swapping towards the end -- marginally more efficient then swapping
       along the whole length.
    64a631d9