In reply to bachan21:
- You aren’t using a queue, you are using a dynamic array.
- Before assigning values to a dynamic array, you need to ‘new’ it with the size of the array.
- A dynamic array can be randomized as long as the size is constrained appropriately.
- Your randomize() call will fail because your sequence_item variables aren’t declared with the ‘rand’ keyword.
- A sequence_item can contain any datatype. Why do you think that a dynamic array/queue won’t work?