Sorry , but your statement of what is the issue is hard to understand . So I will address what I can 1 I do not see the Randomize function , so I cannot tell what you are trying to do there . If you are trying to have random values in your array then take a look into the Random object . It will allow you to create a random value instead of 0 to 99 . 2 When you remove a value within an array , all the other values move into the empty positioneg Array 0 , 1 , 2 , 3 , 4 . Remove value 1 , then the array will be 0 , 2 , 3 , 43 It might help you if you work with smaller pieces at a time . Create a function , test it , debug it , fix it . Once it works move on to the next functionfeatureHope this helps a little <| sep |> CMON SON WHAT THE FUCK IS THAT