- A C library for programming cognitive experiments on Windows
Defined in random.h and random.c
This part contains a number of randomization functions based upon an paper by Marc Brysbaert in BRMIC, 1992. More specifically:
When working with complex randomization, it's better to use two programs: one to produce the randomized list and one to run the trials, based on the values in the randomized list. These are two completely different jobs and putting these together can complicate the testing of your program.
Another option is to use the statistical language R to produce random lists because it offers more sophisticated randomizers.
seed.dat
. Starting a new random sequence with the seeds in this file can be used
to reduce the chance of overlapping random series in sequential runs to zero. However, chances
of overlapping series is by standard incredibly small so this function is to please the
die-hard control freaks. There is even a risk in using this function: if you copy your program
to different computers, without deleting seed.dat
, all your computers will
generate the same random lists.
Don't forget to provide an array large enough to contain the entire list (size = nmax x freq).
Don't forget to provide an array large enough to contain the entire list (size = (nmax x nmax x freq)+1).