Implement random queue