Skip to content
Discussion options

You must be logged in to vote

Can you just put all of the stimulus names into an array...?

var liking = ['stim1', 'stim2', ..., 'stim10']

You can then randomise the order using your preferred method (e.g., shuffle).

Finally, you just add them onto the timeline using a for loop...

for (i=0; i<10; i++){

var liking_trial = {
...
stimulus: liking[i],
...
};

timeline.push(liking_trial)

} //ends the for loop

Would this work?

Cai

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@jaydavies16129
Comment options

@cslongman
Comment options

@jaydavies16129
Comment options

@cslongman
Comment options

@jaydavies16129
Comment options

Answer selected by jaydavies16129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants