Hmm just tried exactly that and still get the same error when I run in local debug mode. Its interesting it seems it should work. I don’t get the error at the beginning so that should be a good sign that the JS code works, however the error still comes up when I actually call randint. My exact line of code in pyschopy I have as a code component doing auto-JS and I enter E=randint(0,2) which “converts” to simply to E = randint(0, 2);
also want to note that I call this on my third routine, which is part of a loop