Hi,
-- removing the first index is easy, simply delete at index 0
-- keeping a maximum of 3 is also a matter of checking first the number of items using arrayListCount action
non duplicates is going to be a little more tricky... typically I would go for a second arrayList acting as a source to pick random values, let's call it "pool".
"pool" content is:
0,1,2,3,4,5,6,7,8,9
-- now you pick a random item from it, store the value AND it's index
-- then add this picked value to the arrayList target and DELETE from pool that value using the index you picked
-- IF you want to delete an value from the arrayList target, store it first and add back to the "pool", so that you can pick it up again next time.
Does this all make sense?
bye,
Jean