How to pick x random questions from a bucket of y

  • olle2
  • olle2s Avatar Autor
  • Besucher
  • Besucher
1 Jahr 3 Monate her #142470 von olle2
olle2 erstellte das Thema How to pick x random questions from a bucket of y
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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 3 Monate her #142494 von tpartner
tpartner antwortete auf das Thema: How to pick x random questions from a bucket of y
Nice, thanks Olle.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 3 Monate her #142497 von jelo
jelo antwortete auf das Thema: How to pick x random questions from a bucket of y
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?
manual.limesurvey.org/Expression_Manager..._of_the_questions.29

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 3 Monate her #142565 von olle
olle antwortete auf das Thema: How to pick x random questions from a bucket of y
It's based on stable behaviour.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 3 Monate her #142567 von olle
olle antwortete auf das Thema: How to pick x random questions from a bucket of y
Carsten's idea, I'm just writing it down so it won't be forgotten.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 1 Monat her #145083 von aleksandr
aleksandr antwortete auf das Thema: How to pick x random questions from a bucket of y
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?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Monat 3 Wochen her #161101 von GlaucoRoschel
GlaucoRoschel antwortete auf das Thema: 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?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Monat 3 Wochen her #161106 von olle
olle antwortete auf das Thema: How to pick x random questions from a bucket of y
Hi,

Feel free to attach your survey so other people can inspect it.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Monat 3 Wochen her #161107 von olle
olle antwortete auf das Thema: How to pick x random questions from a bucket of y
OBS: The questions will also have to be part of a randomization group, not just the groups.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Monat 3 Wochen her #161114 von holch
holch antwortete auf das Thema: How to pick x random questions from a bucket of y
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'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

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha