Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

shuffle function for variables moves entire loop to trash

Hi,

I am trying to shuffle variable columns, so that not all participants get the same combination of variables. When I put

shuffle Ethnicity

shuffle Gender

shuffle Number

shuffle Author

into the script it either is not applied (when moved before set cycle or after run cycle) or the entire loop is moved to unused items (if I set it after set cycles but before run sequence, this is how I used it in the past). I have used this functions in similar design in the past and am really confused why this happens. Am I putting this in the wrong spot?


Franziska

Comments

  • Hi @FranHartung,

    It's difficult to tell what's going on without seeing the task. You might be inserting the shuffle commands in wrong place. These should be placed at the end of the loop's script, just before "run ... sequence".

    Note that it you place it after the "run...sequence" command, it'll work as well (OS will automatically place it in the right place).

    I did a quick implementation of your loop and successfully used the shuffling of the variables you indicated:

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

Sign In or Register to comment.