Is there any way to call upon randomized order of a trial list?

123 views
Skip to first unread message

EprimeNewbie

unread,
Feb 17, 2017, 1:30:56 PM2/17/17
to E-Prime
My question is pretty simple.
Is there anyway to reference the randomized order of a list (or a nested list)?
I am hoping to save that as an array and reference it as needed..

EprimeNewbie

unread,
Feb 17, 2017, 1:42:08 PM2/17/17
to E-Prime
In other words, if I had a list of 20 trials, then I would like to write the randomized order of the 20 numbers into an array. Note, I am not manually doing the randomization but instead using the properties tab within the list to randomize the list (though if necessary, I could manually randomize the order by using the following command: List.Order = RandomOrder.
So conceptually speaking... if the original order of the list was...

     'OriginalOrderArray(20) is an Integer array...

     OriginalOrderArray(1)=1
     OriginalOrderArray(2)=2
     OriginalOrderArray(3)=3
.
.
.
I would like to write the randomized order into an array I can call upon...
Let's call it "RandomizedOrderArray" for example..

     'RandomizedOrderArray(20) is an Integer array...

     RandomizedOrderArray(1)=8
     RandomizedOrderArray(2)=13
     RandomizedOrderArray(3)=2
.
.
.

Any ideas?

EprimeNewbie

unread,
Feb 20, 2017, 12:06:27 PM2/20/17
to E-Prime
Still waiting on ideas..
Would love to hear any ideas you might have..


On Friday, February 17, 2017 at 11:30:56 AM UTC-7, EprimeNewbie wrote:

David McFarlane

unread,
Feb 21, 2017, 3:20:06 PM2/21/17
to e-p...@googlegroups.com
Many years ago I needed to run a List in a randomized order, and then
later rerun that List in the same randomized order. So I submitted this
problem to PST Support, and PST staff kindly directed me to the
ExplicitOrder object, which you may read about in that topic in the
E-Basic Help facility. That did the job very nicely.

BTW, just before PST staff answered my request I hacked my own solution
by resetting the seed of the PRNG. But ExplicitOrder does a better job
than my hack, and opens up other possibilities (e.g., repeating stimuli
in the exact reverse of the earlier randomized order). Have fun with it!

(Key words for search: repeat random order sequence List )

---------------
David McFarlane
E-Prime training online:
http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)

David McFarlane

unread,
Feb 21, 2017, 3:24:02 PM2/21/17
to e-p...@googlegroups.com
Oh, I should have also directed you to where this question has been
answered before:

https://groups.google.com/d/topic/e-prime/PoSOYLJczTA (16 May 2011)
https://groups.google.com/d/topic/e-prime/4QfBcz2P2SM (12 Sep 2013)
https://groups.google.com/d/topic/e-prime/TSrZeAM7fBE (9 Jun 2014)
https://groups.google.com/d/topic/e-prime/OhJ6Ii_JPQ0 (23 Feb 2015)

-- David McFarlane
Reply all
Reply to author
Forward
0 new messages