…point for controlling the RNG parameters up front, but it also allows passing in default values for trialDuration, iti, cursor, etc. myRig could be coded differently at some point to make use of this, but it's fine how it is and should be retrocompatible (defaults are as they were).
Made createRNGstreams() private, so RNGs are fully set and locked down at construction.
Added support for use of RNGs on the GPU using the gpuArray class (Parallel Computing Toolbox). CPU and GPU streams are independent and have identical parameters. See help text of createRNGstreams() for info
…point for controlling the RNG parameters up front, but it also allows passing in default values for trialDuration, iti, cursor, etc. myRig could be coded differently at some point to make use of this, but it's fine how it is and should be retrocompatible (defaults are as they were).