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

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