Randomized queues and dequeues