Gratuitous anecdote...
In the mid 2000s I programmed a Continuous Performance Task -
Identical Pairs (CPT-IP), using a popular and very capable
programming platform. My program generated the trial sequence on the
fly, but unfortunately, it had about a 4% chance of producing a
spurious identical-pair trial on any run. I just could not find a
way to fix this, so I wondered how the original researchers did
it. Well, the original study went back to the 1980s as I recall, and
the methods specified only that they used images of playing cards,
presented in blocks of 80. Why blocked trials, and why that block
length? In particular, 80 does not correspond to any obvious
arrangements of 52 playing cards. The paper did not explain. Then,
because I go back that far myself, I thought about the era. Many
experiments were not computerized yet, and a Kodak Carousel slide
projector held -- you guessed it -- 80 slides (the paper did not say
that they used a Kodak Carousel slide projector, because back then
that was tacitly understood). Clearly, the experimenters in this
case used a fixed pre-randomized trial sequence for their CPT-IP, and
they felt it just fine! (Now, just think how much is left unsaid in
your Procedures write-ups today, and how opaque they will be to
future generations.)
(In the end, we first just ran the program as-is and deleted the
spurious trials, and later just used a fixed pre-randomized order as
others have suggested here. And FWIW, many fMRI designs still
*require* fixed prerandomized sequences.)
-- David McFarlane, Professional Faultfinder