Randomize answer options/sub questions

From Catglobe Wiki
Revision as of 04:13, 8 January 2009 by Catglobe (talk | contribs) (New page: == Challenge == In order to synchronize randomization of sub questions/answer options among several questions As a questionnaire creator I want to control the randomization with a rando...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Challenge

In order to synchronize randomization of sub questions/answer options among several questions

As a questionnaire creator

I want to control the randomization with a random seed, which means that the system will generate a unique order based on one value of random seed

Example

I have a single question with drinks as answer options.

QuestionTips Rotate 1.jpg

I want to show the answer options in random order (except None of the above option)

QuestionTips Randomize 2.jpg

Solution

Use any random seed and a randomization range from 0 to 5

Code

1 quest.randomizeAnswerOptions(3, 0, 5);