Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | target=serial ordered shuffle stepserial stepordered stepshuffle |
2 | |||
3 | #include "xiao.inc" |
||
4 | |||
5 | \text{datafile=slib(oef/env datafile)} |
||
6 | \integer{datacnt=wims(recordcnt \datafile)} |
||
7 | \text{shuff=shuffle(\datacnt)} |
||
8 | #include "confparm.inc" |
||
9 | |||
10 | #if #TARGET (serial) |
||
11 | \title{Continuing questions} |
||
12 | \integer{start=randint(0..\datacnt-\questions)} |
||
13 | \text{records=wims(values x+\start for x=1 to \questions)} |
||
14 | \text{steptype=all} |
||
15 | #endif |
||
16 | |||
17 | #if #TARGET (ordered) |
||
18 | \title{Random questions in the original order} |
||
19 | \text{shuff=shuffle(\datacnt)} |
||
20 | \text{records=wims(sort numeric items \shuff[1..\questions])} |
||
21 | \text{steptype=all} |
||
22 | #endif |
||
23 | |||
24 | #if #TARGET (shuffle) |
||
25 | \title{Shuffled random questions} |
||
26 | \text{shuff=shuffle(\datacnt)} |
||
27 | \text{records=\shuff[1..\questions]} |
||
28 | \text{steptype=all} |
||
29 | #endif |
||
30 | |||
31 | #if #TARGET (stepserial) |
||
32 | \title{One by one continuing} |
||
33 | \integer{start=randint(0..\datacnt-\questions)} |
||
34 | \text{records=wims(values x+\start for x=1 to \questions)} |
||
35 | \text{steptype=step} |
||
36 | #endif |
||
37 | |||
38 | #if #TARGET (stepordered) |
||
39 | \title{One by one in the original order} |
||
40 | \text{shuff=shuffle(\datacnt)} |
||
41 | \text{records=wims(sort numeric items \shuff[1..\questions])} |
||
42 | \text{steptype=step} |
||
43 | #endif |
||
44 | |||
45 | #if #TARGET (stepshuffle) |
||
46 | \title{One by one shuffled} |
||
47 | \text{shuff=shuffle(\datacnt)} |
||
48 | \text{records=\shuff[1..\questions]} |
||
49 | \text{steptype=step} |
||
50 | #endif |
||
51 | |||
52 | \text{choicename=Choice} |
||
53 | |||
54 | #include "proc.inc" |
||
55 |