nah, not that way… fix few errors in your code to make the array be able to clear properly.
1: your loop should have a body and you should call RandomItemType(LocItemType);
in this loop, if you call outside of this loop, it makes loop useless.
2: this should be called under the for loop , in step one I explained.
when this loop finished call to make it clear,
ItemsTypeArr.Empty();
hope it helps
cheers!