IUserAccessiableRandomizeAnswers Method (Int32, Int32) |
Releveant mainly for single choice and multiple selection questions.
Display the answers of question inQuesIdx in a randomized order, according to the order determined in inRandomArray.
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax void RandomizeAnswers(
int inQuesIdx,
int[] inRandomArray
)
Parameters
- inQuesIdx
- Type: SystemInt32
question index - inRandomArray
- Type: SystemInt32
integers Array is with size equals to the answers amount in inQuesIdx; each cell contains different answer index within inQuesIdx answers indexes
Return Value
Type:
void
Examples
RandomizeAnswers(QRef(3), randomArray), will display the answers of question index 3 in a randomized order on screen, according to the order determined in randomArray, meaning:
on screen, the first answer displayed will be the one that its index is in the first cell of randomArray;
the second answer displayed will be the one that its index is in the second cell of randomArray, and so on.
See Also