Adding sample method to RandomizedQueue