expanded nbt_RandomSubSampler.m