Random trial ordering #64
Answered
by
jackbrookes
Dawson-Petersen
asked this question in
Q&A
-
Hello! I'm a little new to UXF, so I may just be missing obvious something in the documentation. But I'm trying to figure out how to present my trials in a (semi-) random order within a block. Any recommendations? |
Beta Was this translation helpful? Give feedback.
Answered by
jackbrookes
Feb 28, 2021
Replies: 1 comment 3 replies
-
What is your definition of semi random? If you want them shuffled, you can use the block1.trials.Shuffle(); If you want them shuffled, but same for each participant, you can supply an RNG object, the number represents the 'seed': var rand = new System.Random(12345); // pick a number to keep consistent
block1.trials.Shuffle(rand); |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
jackbrookes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is your definition of semi random? If you want them shuffled, you can use the
.Shuffle()
method when building your block. e.g. here:https://github.com/immersivecognition/unity-experiment-framework/wiki/Factorial-design
If you want them shuffled, but same for each participant, you can supply an RNG object, the number represents the 'seed':