picking random samples based on self.samplesize