- Posts: 11681
- Thank you received: 2748
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
- holch
- Offline
- LimeSurvey Community Team
Less
More
6 years 3 months ago #163281
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick x random questions from a bucket of y
Did you give the same randomization group name to all questions? From your description you seem to give the randomization group name only to groups. But you don't want to randomize the groups, you want to randomize the questions. I know it is confusing that there are question groups and that there are randomization groups and they are totally different things.
First of all: Take everything out of the randomization group field for the two QUESTION groups. Give the two QUESTION groups different names (you called them both "Grammar"). Then give all the questions in the two question groups the same name in the "randomization group name".
First of all: Take everything out of the randomization group field for the two QUESTION groups. Give the two QUESTION groups different names (you called them both "Grammar"). Then give all the questions in the two question groups the same name in the "randomization group name".
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: ernahaka
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11681
- Thank you received: 2748
6 years 3 months ago - 6 years 3 months ago #163282
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick x random questions from a bucket of y
If that instruction doesn't work: Upload what you have done as an example (please only these two question groups that are relevant for this issue).
Much better for the helpers if you do an upload of your problem, rather than us to create an example and upload. We do this all in our spare time and the easier you make it for us to help you, the better.
Much better for the helpers if you do an upload of your problem, rather than us to create an example and upload. We do this all in our spare time and the easier you make it for us to help you, the better.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Last edit: 6 years 3 months ago by holch.
The topic has been locked.
- ferdeng
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
6 years 3 months ago #163315
by ferdeng
Replied by ferdeng on topic How to pick x random questions from a bucket of y
Here it comes. So I want that every participants gets 1 random question - that's why I created 1 group with 1 question and another one with 2 questions - so it should be picked out of a pool of 3 questions.
Thanks in advance! I use Version 3.1.0+180124
Thanks in advance! I use Version 3.1.0+180124
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10115
- Thank you received: 3597
6 years 3 months ago #163317
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to pick x random questions from a bucket of y
As previously stated...
1) Give the second group a relevance of 0.
2) DO NOT use the "Randomization group" field for groups. (see attached screenshot)
3) DO use a common value in the "Randomization group name" field for all questions. (see attached screenshot)
Sample survey attached:
1) Give the second group a relevance of 0.
2) DO NOT use the "Randomization group" field for groups. (see attached screenshot)
3) DO use a common value in the "Randomization group name" field for all questions. (see attached screenshot)
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: insanelex
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11681
- Thank you received: 2748
6 years 3 months ago #163320
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick x random questions from a bucket of y
You obviously did NOT follow the innitial instructions:
Attached a version of your test. I deleted the final question which was irrelevant for the problem and switched of the welcome text, which is taking valuable time when testing this specific issue.
Called the survey 10 times for test purposes, received 4x Text1, 3x Text2 and 3x Text3. Seems to work perfectly.
You gave 0 to the questions, not the group!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
Attached a version of your test. I deleted the final question which was irrelevant for the problem and switched of the welcome text, which is taking valuable time when testing this specific issue.
Called the survey 10 times for test purposes, received 4x Text1, 3x Text2 and 3x Text3. Seems to work perfectly.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11681
- Thank you received: 2748
6 years 3 months ago #163321
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick x random questions from a bucket of y
And once again, Tpartner beat me again. However, why did I not see his answer before. It didn't take me 50min to solve this!!!
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 3 months ago #163324
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic How to pick x random questions from a bucket of y
You posted 2min after Tony. Nobody to blame. Since you can edit your posts, why not post a placeholder?holch wrote: However, why did I not see his answer before. It didn't take me 50min to solve this!!!
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: ferdeng
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11681
- Thank you received: 2748
6 years 3 months ago #163325
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick x random questions from a bucket of y
Nope, my second post was 2 minutes after my first post.
Tony's post was "2 hours 35 minutes ago", mine "1 hour 35 minutes ago".
I guess his answer was just on the next page and I did not notice that he had already answered and started to solve the problem as well.
Why would I post a place holder? To "reserve" the first position for my answer? Hahahaha.
Not that big of a deal. Tony has a lot more practical experience with LS, so he will beat me any time, I guess. My only chance is getting there way before him and get a headstart...
Tony's post was "2 hours 35 minutes ago", mine "1 hour 35 minutes ago".
I guess his answer was just on the next page and I did not notice that he had already answered and started to solve the problem as well.
Why would I post a place holder? To "reserve" the first position for my answer? Hahahaha.
Not that big of a deal. Tony has a lot more practical experience with LS, so he will beat me any time, I guess. My only chance is getting there way before him and get a headstart...
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: ferdeng
The topic has been locked.
- haroldrio
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 2
5 years 4 months ago #178307
by haroldrio
Replied by haroldrio on topic How to pick x random questions from a bucket of y
I was following this post since morning and I could not get it right.
Until after lunch. I changed the General Options - Format to "All in one"
and it worked!
I don't know what I have been missing but maybe this can help.
Thanks guys. This post is very helpful to me.
I am using v3.2.1
Until after lunch. I changed the General Options - Format to "All in one"
and it worked!
I don't know what I have been missing but maybe this can help.
Thanks guys. This post is very helpful to me.
I am using v3.2.1
The topic has been locked.
- insanelex
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
4 years 1 month ago #195831
by insanelex
Replied by insanelex on topic How to pick x random questions from a bucket of y
This seems to work. However, the total count of questions at the start of the test and at the progress bad seems to consider all questions, even the ones on the relevance 0 groups.
Is there a way to fix this? Or maybe a newer and updated method for doing this random questions thing?
Is there a way to fix this? Or maybe a newer and updated method for doing this random questions thing?
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11681
- Thank you received: 2748
4 years 1 month ago #195833
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to pick x random questions from a bucket of y
The counter at the start considers all questions in your survey, no matter their relevance (which in many cases can change, depending on your relevance equations). My solution would be to either put my own count or leave the count out completely. Because in my opinion it doesn't help much anyway.
You can have a survey with two questions, both with enormous lists of answer options, e.g. 100 each. This will take significantly longer to answer than a survey with 20 YES/NO questions.
You can have a survey with two questions, both with enormous lists of answer options, e.g. 100 each. This will take significantly longer to answer than a survey with 20 YES/NO questions.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: insanelex
The topic has been locked.