Random Number Generation

4 years 5 months ago #157421 by airraidsiren1974
Hey Guys...

I have a survey with 7 groups. The first 6 groups have 6 cards with a name and a humor style and the remaining group has 4 cards with descriptions of friendship. I need to ask one question per group without repeating a name, humor style or friendship condition. This needs to be fully randomized, but they cannot repeat.

I found the workaround which shows how to create a random number, but I can't figure out how to make that number not repeat, while, at the same time, store it in separate question_ids.

I looked up the javascript code to generate the random numbers from an array, but how do I get them to be stored in limesurvey?
The topic has been locked.
4 years 5 months ago #157422 by airraidsiren1974
Here's the code I was looking at adapting for my survey:

The topic has been locked.
4 years 5 months ago #157431 by tpartner
Replied by tpartner on topic Random Number Generation
You can load the array elements into sub-questions of a hidden multi-short-text question. Have a look at this post for inspiration - www.limesurvey.org/forum/can-i-do-this-w...oice-question#143140

Tony Partner

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

Start now!

Just create your account and start using Limesurvey today.

Register now