Welcome to the LimeSurvey Community Forum

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

Random assignment to conditions

More
8 years 4 months ago - 8 years 4 months ago #152729 by simulacrum6
Probably not relevant anymore, but maybe some desperate limesurvey user will read this and rejoice:

Create a Question (myQuestion) of Type Equation. Set the Question Text to
Code:
{if( is_empty(myQuestion), rand(1,4), myQuestion )}

This will assign a random value between 1 and 4 to myQuestion, if it has not been previously assigned.
Last edit: 8 years 4 months ago by simulacrum6.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose