I'm not sure if this is correct. When you delete array element, you just make it "empty". The "pick" (random 1-4) can still eventually select this unexisting index. How can you make to NOT select again already picked index from the Array_Temp?
Member since 1 Jun, 2016