Small, miscellaneous fixes

Orthogonal to this PR. I'm documenting and fixing the method, not introducing it. It uses the dataset's internal seed.