Index
If this argument is greater than null the corresponding element will be drawn. If you select the first element several times and use the auto-initialization mode, you will draw all elements from the set in reverse order as they have been defined beginning with the first, e.g.: 1st Nth (N-1)th (N-2)th and so on.
0 Random draw
n Selection of the n-th element
Example for drawing random elements from set
PICTURE RndPic N ; Dummy picture used as destination object
PICTURE A N
PICTURE B N
PICTURE C N
SET abc V
A B C
; If this trial is executed many times, all letters are displayed in random order
TRIAL SelectPic
DE abc RndPic 2 0 ; Draw random element and assign it to RndPic
RK ResKeys 1500 ; Record Keys, (MaxRt = 1500 ms)
SP RndPic MidPos 1 0 1 ; Show random picture until response or MaxRt
PICTURE Red N
PICTURE Green N
PICTURE Blue N
COLOR CRed R 100 0 0
COLOR CGreen R 0 100 0
COLOR CBlue R 0 0 100
COLOR RndColor R 0 0 0
SET Pictures V Red Green Blue
SET Colors V CRed CGreen CBlue
;This trial displays a random color word in the corresponding color
TRIAL ParallelDraw
DE Colors RndPic ; Draw random picture
DE Colors RndColor 0 1 1 ; Select parallel color
SP RndPic MidPos 1 1000 0 RndColor ; Show random picture in corresponding color
Copyright 2023 - BeriSoft Inc.
All rights reserved