psychopy.org | Reference | Downloads | Github

Random.seed in pavlovia

URL of experiment:

Description of the problem:
Hi, I have four lines in my experiment that are oriented at random. I’d want for the lines to have similar randomness across participants, but when I use Math.seedrandom(1); the orientation of each line is consistent across all trials. For example, for all of the trials, TL 2’s orientation would be 80. The code is in the practice_vwm loop, the reset_garting_2 routine, and the Ori_2 component. Thank you.

Have a look at my crib sheet (or possibly my code snippets page) for some code for reproducible seeds.

1 Like

Thank you.