❔ help with error
so basicaly i have this really complex assignment for no reason and i made this code and im in the part where i have to place it back into the orignal array but im getting an error of outofbounds and i see that the variable count becomes 15 but idk how because it should be 5 in this case because the array initalized made 5 rand numbers


