Rev 2071 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2071 | zjchen | 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 | |||
8002 | bpr | 10 | #if defined TARGET_serial |
2071 | zjchen | 11 | \title{连续的问题} |
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 | |||
8002 | bpr | 17 | #if defined TARGET_ordered |
2071 | zjchen | 18 | \title{原始次序下的随机问题} |
19 | \text{shuff=shuffle(\datacnt)} |
||
20 | \text{records=wims(sort numeric items \shuff[1..\questions])} |
||
21 | \text{steptype=all} |
||
22 | #endif |
||
23 | |||
8002 | bpr | 24 | #if defined TARGET_shuffle |
2071 | zjchen | 25 | \title{随机乱排的问题} |
26 | \text{shuff=shuffle(\datacnt)} |
||
27 | \text{records=\shuff[1..\questions]} |
||
28 | \text{steptype=all} |
||
29 | #endif |
||
30 | |||
8002 | bpr | 31 | #if defined TARGET_stepserial |
2071 | zjchen | 32 | \title{一个接一个持续} |
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 | |||
8002 | bpr | 38 | #if defined TARGET_stepordered |
2071 | zjchen | 39 | \title{按原始次序一个接一个} |
40 | \text{shuff=shuffle(\datacnt)} |
||
41 | \text{records=wims(sort numeric items \shuff[1..\questions])} |
||
42 | \text{steptype=step} |
||
43 | #endif |
||
44 | |||
8002 | bpr | 45 | #if defined TARGET_stepshuffle |
2071 | zjchen | 46 | \title{乱排的一个接一个} |
47 | \text{shuff=shuffle(\datacnt)} |
||
48 | \text{records=\shuff[1..\questions]} |
||
49 | \text{steptype=step} |
||
50 | #endif |
||
51 | |||
52 | \text{choicename=选择} |
||
53 | |||
54 | #include "proc.inc" |