Randomization failed for AXI burst transfer


for(int i = 0; i <256; i++) begin //{ for awlen
   bit [15:0] write_data[i]
   assert(std::randomize (write_data[i])); // trying to generate data based on the awsize & awlen
   // awsize=4, awlen = 32 // 16 bytes of 33 transfer for the awdata. 
   // calling taskto drive transfer

end//}
                                             
xmvlog: *E,RNDRARG (<path>): The argument to scope randomize must be a simple identifier of integral type.

any help on this would be appreciated

In reply to m_r_m:

You’ve asked the same question before. You need to remove the [i] to randomize all of
write_data
.