Fix bug in culling

To be consistent with random sampling, which now consists of integers
without replacement.