Is the code below correct for resizing a dynamic array of randomnumbers

 
ArrayResize(randomNumbers, ArraySize(randomNumbers) + 1);
 
Simply test it, and find out!
 
If you need further help with your code, show your attempt and explain in detail.
Reason: