Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to pick x random questions from a bucket of y

  • olle2
  • olle2's Avatar Topic Author
  • Visitor
  • Visitor
8 years 1 month ago #142470 by olle2
Instructions on how to pick 8 random questions from a bucket of 50 questions:

create two groups: one with 8 question and one with 42
hide the second group (relevance equation = 0)
then make sure all 50 questions are part of _the same_ randomization group
the questions will get random order _between_ the two groups
and since the second group is hidden, it will be like picking 8 question out of a bucket of 50
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #142494 by tpartner
Nice, thanks Olle.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 1 month ago #142497 by jelo
Is this workaround based on a stable behavior or is it based on a bug? Is that indented behavior?
Would save many lines of EM code from the current way to do it, right?
www.limesurvey.org/manual/Expression_Man..._of_the_questions.29

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
8 years 1 month ago #142565 by ollehar
It's based on stable behaviour.
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
8 years 1 month ago #142567 by ollehar
Carsten's idea, I'm just writing it down so it won't be forgotten.
The topic has been locked.
More
7 years 11 months ago #145083 by aleksandr
Thanks for the tip! Exactly what I was looking for.

The only problem is that I want to generate a printable forms and "relevance equation = 0" is being ignored for it.

Is is possible to make this work for printing forms by modifying template files?
The topic has been locked.
More
6 years 11 months ago #161101 by GlaucoRoschel
Replied by GlaucoRoschel on topic How to pick x random questions from a bucket of y
Hi Olle2,

I've tried to follow these instructions but for me doesn't work well. I will explain.

I created 2 groups just a test.

1. Group as:
Title: GRAMMAR (43)
Description: You will have 3 questions to answer.
Relevance: 1
Randomization group: GRAMMAR
This group I created 3 questions.

2. Group as:
Title: GRAMMAR (50)
Description: You will have 3 questions to answer.
Relevance: O
Randomization group: GRAMMAR
This group I created 4 questions.

So, when I make a test, always appears the same 3 questions regarding the Group 1 and never regarding from the Group 2. I already tried to fill up the information using different user but doesn't work. Please, can you help me?
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 11 months ago #161106 by ollehar
Hi,

Feel free to attach your survey so other people can inspect it.
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 11 months ago #161107 by ollehar
OBS: The questions will also have to be part of a randomization group, not just the groups.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 11 months ago #161114 by holch
As Olle says: The questions need to have the same "randomization group name", not the question groups. What you currently seem to do is just randomize the order of the two question groups, not the questions within these groups.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
6 years 9 months ago #163263 by ferdeng

GlaucoRoschel wrote: Hi Olle2,

I've tried to follow these instructions but for me doesn't work well. I will explain.

I created 2 groups just a test.

1. Group as:
Title: GRAMMAR (43)
Description: You will have 3 questions to answer.
Relevance: 1
Randomization group: GRAMMAR
This group I created 3 questions.

2. Group as:
Title: GRAMMAR (50)
Description: You will have 3 questions to answer.
Relevance: O
Randomization group: GRAMMAR
This group I created 4 questions.

So, when I make a test, always appears the same 3 questions regarding the Group 1 and never regarding from the Group 2. I already tried to fill up the information using different user but doesn't work. Please, can you help me?

I have the same problem, actually. Tried every combination, but the only thing that happens is that the question of the relevance=1 group show up randomly (or not). Not the other questions. Could someone upload an example how this works? That would be very cool! Thank you in advance.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago #163272 by tpartner
LimeSurvey version?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose