Hello everyone - I am trying to set the random seed for trials repetition in js. The seed is randomly generated but constant across repetitions so that the sequence of trials is random in the first block but then identical to the first block in all subsequent blocks.
In python this is really simple: I have a code component
sequence = random.randint(1,1000)
and then I set the random seed of trial repetitions to $sequence.
However, I can’t figure out how to do that in js! I have tried everything, looked at the sheet crib and all previous replies on a similar topics but couldn’t quite figure this out.
In js even though I have
sequence = Math.floor(Math.random() * 1000 + 1);
and then I set the random seed of trial repetitions to $sequence I get the error