Array: spawn an item, delete the item spawned and if no items left, re-enable the array?

Have two arrays. One holds the levels, the other is a copy which you shuffle and use. When you’re done, just copy the original across again.

BTW: Only ever remove the last index, otherwise looping will not work…