In reply to scorbetta:
A queue is a construct which grows and shrinks with the data inside. There is no need to randomize/dtermine any size of the you. I’d recommedn to remove the constraint size _c. And you do not show how you are filling in the data in your queue.