I want to use a random number from a list to select the particular element of a parameter array and use it elsewhere in the script as a parameter e.g.
Array is sspaidlist My random integer from a parameter list is {GenRandomSSPAID}, which i want to use as the element of the sspaidlist array and save to is RandomSSPAID
lr_save_string(lr_eval_string("sspaidlist_{GenRandomSSPAID}"),"RandomSSPAID");
This just gets me the actual value "sspaidlist" and not the array.
I've also tried
sprintf(RandomSSPAID, "{sspaidlist_%d}", lr_eval_string("{GenRandomSSPAID}"));
but this seems to set RandomSSPAID to 0
The idea is to get 3 unique values - so 3 different array elements, I can't get the same value twice. I've offloaded the randomness to the loadrunner parameter functions, so I will always get a unique number with {GenRandomSSPAID}.