Commit 045370a7 authored by Dasoo Milton Yoon's avatar Dasoo Milton Yoon

fda

parent b8710018
......@@ -443,7 +443,7 @@
<Param name="Begin Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Routine" updates="constant" val="cur_items_shuffle = shuffle(cur_items)&amp;#10;&amp;#10;feedback_list_1 = cur_items_shuffle.slice(0, 3)&amp;#10;feedback_list_2 = cur_items_shuffle.slice(0, 3)&amp;#10;feedback_list_3 = cur_items_shuffle.slice(0, 3)" valType="extendedCode"/>
<Param name="Begin Routine" updates="constant" val="function shuffle(a) {&amp;#10; var j, x, i;&amp;#10; for (i = a.length - 1; i &gt; 0; i--) {&amp;#10; j = Math.floor(Math.random() * (i + 1));&amp;#10; x = a[i];&amp;#10; a[i] = a[j];&amp;#10; a[j] = x;&amp;#10; }&amp;#10; return a;&amp;#10;}&amp;#10;&amp;#10;cur_items_shuffle = shuffle(cur_items)&amp;#10;&amp;#10;feedback_list_1 = cur_items_shuffle.slice(0, 3)&amp;#10;feedback_list_2 = cur_items_shuffle.slice(0, 3)&amp;#10;feedback_list_3 = cur_items_shuffle.slice(0, 3)" valType="extendedCode"/>
<Param name="Code Type" updates="None" val="Py" valType="str"/>
<Param name="Each Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="Each JS Frame" updates="constant" val="" valType="extendedCode"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment