RandomSampler basic functionality finished