A task measuring executive function where participants attempt to generate random sequences of digits in time with an auditory/visual pacing signal.
Participants press number keys (0-9) one at a time, paced by a beep and flashing circle. The goal is to produce a sequence as random as possible. Multiple randomness metrics are computed including RNG score, redundancy, adjacency, turning points, and repetition gaps. These metrics quantify how well participants suppress habitual patterns and maintain random output.
Measures: Executive function, inhibition, working memory, random generation ability
| numtrials | Number of total trials to use. (default: 162) |
| practicetrials | Number of practice trials (default: 15) |
| isi | ISI in ms for the beeps (default: 800) |
| usebeep | Whether to use a beep to guide responses (default: 1) |
| useflash | Whether to use a flash to guide responses (default: 1) |