Object handles and randomization

In reply to Bahaa Osman:

I need to be able to send a txn with a specific list of car brands

both of the below format works for me…


  //i_txn.randomize() with {foreach (i_txn.mycars_arr[i]) i_txn.mycars_arr[i].brand_e == TOYOTA; }; 
  i_txn.randomize() with { i_txn.mycars_arr[0].brand_e == TOYOTA;
i_txn.mycars_arr[1].brand_e == FORD;
i_txn.mycars_arr[2].brand_e == HONDA;
i_txn.mycars_arr[3].brand_e == TOYOTA;
i_txn.mycars_arr[4].brand_e == FORD;
                          }; 

and potentially specific values of each brand’s fields.

this needs some thinking…let me chk