Improved random selection of files being matched in the library.