Looks like it is, but should it be? If you pass the count vector:

If you run ``subsample([1,1,1], 3, True)`` shouldn't ``[2,1,0]`` be a valid result?