Randomisation devices: Differences and suitability

Más
7 años 2 meses antes #86327 por borja
Hello,

Can someone explain to me why in the sample survey "Randomly Ask One Question Per Group" the expression used is floor"(rand(1, X))" instead of simply "rand (1,X)," what is the difference and why the first option is preferable as a device which randomly selects an integer within a range of two integers? (I assume that is preferred because is feautured in this example, which is part of the limesurvey manual)

Thank you very much.

Borja

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

LimeSurvey Partners
Más
7 años 2 meses antes #86331 por Mazi
I have pointed our Expression Manager expert to this thread, he should be able to help.

Link to the test survey Borja mentioned: docs.limesurvey.org/Expression+Manager+S...e_Question_Per_Group

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
7 años 2 meses antes #86351 por TMSWhite
Borja-

That example was created when I expected that rand(x,y) would create a double precision number between x and y. Since rand() in PHP generates and integer, we standardized on that, but never updated the example.

So, the example should read:
if(ask>=1,ask,rand(1,6))

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
7 años 2 meses antes - 7 años 2 meses antes #86393 por borja
Thanks very much for your reply TMSWhite, and Mazi for pointing out the issue.
Última Edición: 7 años 2 meses antes por borja.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

¡Comenzar ahora!

Simplemente cree una cuenta y comience a usar LimeSurvey hoy mismo.

Registrarse ahora
¡Únase a nuestro boletín informativo!

Iniciar sesión