Repetition multiplier when variable

Hello I have been trying to generate a concatenated arrays where the Repetition multiplier I take is also generated randomly, now using that randomly generated Repetition multiplier I want to generate another concatenated array. When I try doing that the error is thrown saying “Repetition multiplier must be a constant” .
As in I generate a randomly and want to concatenate b , a times as follows
(A (b))
Is there a way through for this while we are generating something like this constraint.

In reply to Ayush_1:

Can you clarify your question with some declarations and some examples of results you would like to see? Are the arrays packed or unpacked?

The array is packed as in wanted to generate constraints for
[0:a-1][b-1:0]array_1;
Where a and b also have to be constrained to a value range.

The packed dimensions of array i.e., the width of the array should be fixed during compile time only.We can not randomize the packed dimension.

Thanks & Regards,
Shanthi V A
www.maven-silicon.com

In reply to shanthi:

So we can assume that there is no way to form a packed array whose dimensions are also constrained with a specific range…I doubt this might be possible as there should be a way us in foreach loop somehow we can constrain the dimensions of packed array also. As I have been trying to get to a solution to above problem.