Backup Test block selection logic

It is random, but the list of files to test is selected from three groups in this preference order:

  1. Files that have never been tested
  2. If more samples need testing (depending on settings), then select from files that have been tested before, with preference towards ones that have been tested less
  3. If still more samples are needed to test, then choose from files that have been tested the most.

Here’s the code if you’re curious: