pull_sample function

Random sample of spectra