Random Number Generator

Hello! I’m trying to figure out how to get a random number generator (or something like it) working for SuperLab Remote that can function as a unique identity code (which is required for Mechanical Turk).

I’ve gotten as far as figuring out how to use the “Count” parameter feature in the event and then updating the trial with a rule that says to always assign a random number to the count parameter, but every time I practice run a trial, the number still comes up 0.

What am I doing wrong? I couldn’t find anything about how to do this (other than it looks like it can be done). Any help would be appreciated!

Without seeing the experiment, I would guess that the rule is not running early enough. Trial-level rules are executed after a trial runs. And block-level rules are executed after all the trials in the block have ran.

If you have an instructions block, try running the rule in that block. This way, you will get your random number before the actual experiment starts.