Randomized queue programming assignment