Make the RandomizedQueue works