Hello Mahesh. Dynamic arrays do not get allocated by randomisation, so based on the small snippet of code you've shared, the array_of_frames will still be empty after the randomize() call. I assume you are allocating the array before calling randomize(). What are the dimensions that you've set? You also appear to have missed some constraints on the size of array_of_frames, there is nothing linking that to the other rand variables in your constraints. If you can share a runnable example that show the error, it'll be a lot easier to help you. You should also state which simulator version you're using.
↧