[LON-CAPA-users] randomize order of parts

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Mon, 10 Oct 2005 16:41:42 -0400 (EDT)


Hi Sally,

> Is there a way to randomize the order in which parts appear in a
> problem? 

Yes.

(3 parts, order is randomized)
<problem>
  <randomlist>
    <part id="1"></part>
    <part id="2"></part>
    <part id="3"></part>
  </randomlist>
</problem>

Will do it.

One warning, though do _NOT_ do:

(3 parts, 1 of which is picked and wshown to students)
<problem>
  <randomlist show="1">
    <part id="1"></part>
    <part id="2"></part>
    <part id="3"></part>
  </randomlist>
</problem>

This can cause consitancy problems with the external grading tools,
they expect all users to see all of the <part>s of a .problem

One _can_ do both:

(one part, 3 string responses, order is randomized)
<problem>
  <part id="A">
    <randomlist>
      <stringresponse id="1"></stringresponse>
      <stringresponse id="2"></stringresponse>
      <stringresponse id="3"></stringresponse>
    </randomlist>
  </part>
</problem>

and

(one part, 3 string responses, only one of the string responses is
shown and needs to be gotten correct)
<problem>
  <part id="A">
    <randomlist show="1">
      <stringresponse id="1"></stringresponse>
      <stringresponse id="2"></stringresponse>
      <stringresponse id="3"></stringresponse>
    </randomlist>
  </part>
</problem>

-- 
guy@albertelli.com   0-7-2-1-27,137