If sample without replacement, `num` cannot be greater than initialCount. What is block for?