build RandomizedQueue