Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Randomize answer options/sub questions

From Catglobe Wiki
Revision as of 02: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)

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.

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

Solution

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

Code

quest.randomizeAnswerOptions(3, 0, 5);