better randomized queue