Subversion Repositories wimsdev

Rev

Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 8002
Line 5... Line 5...
5
\text{datafile=slib(oef/env datafile)}
5
\text{datafile=slib(oef/env datafile)}
6
\integer{datacnt=wims(recordcnt \datafile)}
6
\integer{datacnt=wims(recordcnt \datafile)}
7
\text{shuff=shuffle(\datacnt)}
7
\text{shuff=shuffle(\datacnt)}
8
#include "confparm.inc"
8
#include "confparm.inc"
9
 
9
 
10
#if #TARGET (serial)
10
#if defined TARGET_serial
11
\title{questions dans la suite}
11
\title{questions dans la suite}
12
\integer{start=randint(0..\datacnt-\questions)}
12
\integer{start=randint(0..\datacnt-\questions)}
13
\text{records=wims(values x+\start for x=1 to \questions)}
13
\text{records=wims(values x+\start for x=1 to \questions)}
14
\text{steptype=all}
14
\text{steptype=all}
15
#endif
15
#endif
16
 
16
 
17
#if #TARGET (ordered)
17
#if defined TARGET_ordered
18
\title{questions aléatoires dans l'ordre}
18
\title{questions aléatoires dans l'ordre}
19
\text{shuff=shuffle(\datacnt)}
19
\text{shuff=shuffle(\datacnt)}
20
\text{records=wims(sort numeric items \shuff[1..\questions])}
20
\text{records=wims(sort numeric items \shuff[1..\questions])}
21
\text{steptype=all}
21
\text{steptype=all}
22
#endif
22
#endif
23
 
23
 
24
#if #TARGET (shuffle)
24
#if defined TARGET_shuffle
25
\title{questions aléatoires dans le désordre}
25
\title{questions aléatoires dans le désordre}
26
\text{shuff=shuffle(\datacnt)}
26
\text{shuff=shuffle(\datacnt)}
27
\text{records=\shuff[1..\questions]}
27
\text{records=\shuff[1..\questions]}
28
\text{steptype=all}
28
\text{steptype=all}
29
#endif
29
#endif
30
 
30
 
31
#if #TARGET (stepserial)
31
#if defined TARGET_stepserial
32
\title{Une par une dans la suite}
32
\title{Une par une dans la suite}
33
\integer{start=randint(0..\datacnt-\questions)}
33
\integer{start=randint(0..\datacnt-\questions)}
34
\text{records=wims(values x+\start for x=1 to \questions)}
34
\text{records=wims(values x+\start for x=1 to \questions)}
35
\text{steptype=step}
35
\text{steptype=step}
36
#endif
36
#endif
37
 
37
 
38
#if #TARGET (stepordered)
38
#if defined TARGET_stepordered
39
\title{Une par une dans l'ordre}
39
\title{Une par une dans l'ordre}
40
\text{shuff=shuffle(\datacnt)}
40
\text{shuff=shuffle(\datacnt)}
41
\text{records=wims(sort numeric items \shuff[1..\questions])}
41
\text{records=wims(sort numeric items \shuff[1..\questions])}
42
\text{steptype=step}
42
\text{steptype=step}
43
#endif
43
#endif
44
 
44
 
45
#if #TARGET (stepshuffle)
45
#if defined TARGET_stepshuffle
46
\title{Une par une dans le désordre}
46
\title{Une par une dans le désordre}
47
\text{shuff=shuffle(\datacnt)}
47
\text{shuff=shuffle(\datacnt)}
48
\text{records=\shuff[1..\questions]}
48
\text{records=\shuff[1..\questions]}
49
\text{steptype=step}
49
\text{steptype=step}
50
#endif
50
#endif