in reply to Re: Re (tilly) 2 (unrandomness): Extract random records from text file
in thread Extract random records from text file

I prefer shuffling at the end using Fischer-Yates. Shuffling at the start with splice is algorithmically very bad. OK, with only 10 elements, it works just fine, but I tend avoid splice on general principle if there is a more efficient alternative. (Which there is in this case.)
  • Comment on Re (tilly) 4 (unrandomness): Extract random records from text file