Group randomisation.

More
5 years 7 months ago #64008 by mwilliams
Hi all. Could anyone help with a quick question re randomising groups? I've set up the group sequence randomisation as per ( bugs.limesurvey.org/file_download.php?file_id=1228&type=bug ) but find the order of all groups is randomised, not only those with _rand() appended. Any ideas what I've done wrong?

Please Log in to join the conversation.

More
5 years 7 months ago #64013 by greg_d
Hi,

What version you are trying to modify? This is quite old workaround and have some drawbacks or uncertainties like this: bugs.limesurvey.org/view.php?id=557#c12962 (probably you have read that discussion)

I think that using debugger or inserting some logging code to RandomizeSessionGroupList() function will be the best solution here.

Please Log in to join the conversation.

More
5 years 7 months ago #64028 by mwilliams
I tried the hack with 1.70, 1.87+ and 1.91+. It only randomises the groups in 1.87+ but it's then all or nothing.

Turning debugging on in config.php returns no errors and I wouldn't know where to start with inserting PHP to log the function. Waiting until randomisation is included in the build isn't an option, so I'll keep trying to find a workaround for now.

Please Log in to join the conversation.

More
5 years 7 months ago #64043 by DenisChenu
1.91+ have a new functionnality for group random,

Look at advanced settings of each question.

( i didn't test it )

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 7 months ago #64047 by holch
@Shnoulle: I couldn't find anything on Group Randomization (randomizing groups of questions). Are you referring to "Randomization group name"?

Because while it sounds like you can randomize groups, it just defines groups of questions, where the containing questions can be randomized. I don't like the wording, because it can really easily misunderstood and taken for the randomization of question groups. But what it really does is randomizing questions within a "group" which has nothing to do with the question groups we know from LS.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 7 months ago #64070 by mwilliams
Thanks for the replies but yes, the "Randomisation group name" field is the only relevant setting in the advanced section of each question. The tooltip states, as holch suggests, "all questions included in the specified group will appear in a random order". It doesn't randomise the group order, only the order of questions within a particular group.

Having hacked and uploaded a fresh copy of index.php on 1.87+, the group randomisation in the pdf linked from my OP seems to be working and stable. It had a period of stability before it broke previously, so I wonder if something wrote to the index file. I don't know of anything that writes to index.php but I'll keep a check on the modification date.

For anyone else wishing to randomise the group order, use the pdf hack with 1.87+ (rather than the version specified in the instructions) and insert the code around line 2814 (rather than the line specified in the instructions). I'll repost here if it breaks again.

Please Log in to join the conversation.

More
3 years 10 months ago #95908 by Mazi

mwilliams wrote: Thanks for the replies but yes, the "Randomisation group name" field is the only relevant setting in the advanced section of each question. The tooltip states, as holch suggests, "all questions included in the specified group will appear in a random order". It doesn't randomise the group order, only the order of questions within a particular group.

A feature to randomize question groups exists since Limesurvey 2.0, see manual.limesurvey.org/Creating_a_questio..._group_randomization


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.