bool OnGetDummyGeneratorWeights(inQuestionIndex, inIteration, ioArray)
This call back allows you to alter the weights of answers for the random selection of answers. It gets called for each question that the generator is generating data for. If you decide to manipulate the weights of answers, you should return true. Otherwise, if you wish for the generator to use the default weights, return false. The default weight given to each answer is 1. The array of answers is a zero-based array meaning that the weight of answer 1 is in ioArray and the weight of answer 3 is in ioArray. You do not have to set the weights for all answers, only to the ones you wish to alter.
Click here to learn more about the Dummy Data Generator
The following is a list of parameters the functions receives
|inQuestionIndex||Int||The question index|
|inIteration||Int||The iteration Index|
|ioArray||Int||The array of the answers|
function OnSetDummyGeneratorWeights(inQuestionIndex, inIteration, ioArray)
var retVal = false;
if (inQuestionIndex == QRef(17))
ioArray = 9;
ioArray = 3;
retVal = true;
Please sign in to leave a comment.