Millisecond Forums

List question

https://forums.millisecond.com/Topic18161.aspx

By nashby - 1/20/2016

So i have a task where we force an outcome pattern and I figure the best way to enforce this is using a list that is played out over and over again.

For example I have a list with items: 0,0,0,0,1,0,0,1 and I want that list to play out in sequence over and over again. This works fine.

The problem I have is on the very first trial I need to start randomly somewhere within the list. So for example one subject might start at index 3 in the list then go through it in sequence over and over again, while another might start at index 1 or 5. I cannot figure out how to make this work. Any ideas?
By Dave - 1/20/2016

>The problem I have is on the very first trial I need to start randomly somewhere within the list. So for example one subject might start at
> index 3 in the list then go through it in sequence over and over again, while another might start at index 1 or 5.

See the code in this thread, which does exactly that: https://www.millisecond.com/forums/Topic17187.aspx