- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
q1==1
q1==2
{rand(1,15)}.
{if(is_empty(q1), rand(1,15), q1)}
The most likely reason is that the rand() function is called each time the page is visited AND each time it is validated.
holch wrote: No, this isn't working.
Seems like when you call the result for this question the rand function is run again. Tested it here and the the rand equation gave me "3", when I moved to the next page, where the I display the result of the question in a text display I get a "2".
This is also in line with what Thomas White is writing in the thread that soheilj cited above:The most likely reason is that the rand() function is called each time the page is visited AND each time it is validated.
Are you sure ?holch wrote: ...
Denis suggested that an alternative would be to put the rand() question in a different group on a different page and this doesn't work (only if you use is_empty, etc., but as I said, when using this you don't need a different group or different page).