<div dir="ltr">I tried a modification to include best the random selection:<div><br></div><div><div><br></div><div>'Randomly select a picture from Stim string and </div><div>'pairs it with an element of Code string</div><div>For l = 0 to 59</div><div>j = Random(0, 59)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Stim (j) = Code (l)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Pict(l) = j</div><div>Next l</div><div><br></div><div><br></div><div>For k = 1 to 130</div><div>'When code value matches the value in the attribute, </div><div>'the associated Stim picture is set in the ID column</div><div>For n = 0 to 59</div><div>if Sequence.GetAttrib (k, "order")= Code (n)<span class="Apple-tab-span" style="white-space:pre"> </span>Then</div><div>Sequence.SetAttrib k, "ID", Stim (Pict (n)) </div><div>End if</div><div>Next n</div><div><br></div><div>Next k</div></div><div><br></div><div><br></div><div>I created an array to store the order of the random values j so I can use them to match the picture with the code. Unfortunately, it still does not work. It's like the file names of the picture never find their way to the attribute column when i run the experiment. </div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/c9d5d6bb-0201-4a3f-93af-6e5112aaa90c%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/c9d5d6bb-0201-4a3f-93af-6e5112aaa90c%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />