Randomizing a dynamic array size

In reply to h_g:

It wasn’t clear what the original poster wanted to do. You can do this all with one call to randomize() by pre constructing the array, and then the randomization will trim it down to the random array size.