Subversion Repositories wimsdev

Rev

Rev 2455 | Rev 4119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2455 Rev 4091
Line 4... Line 4...
4
If you put several words (or groups of words), separated by commas,\
4
If you put several words (or groups of words), separated by commas,\
5
within a pair of embraces, one of the words will be randomly drawn\
5
within a pair of embraces, one of the words will be randomly drawn\
6
at the time when the text is presented to students. This will add\
6
at the time when the text is presented to students. This will add\
7
randomness to your text. <p>\
7
randomness to your text. <p>\
8
For example, if you enter the text <p>\
8
For example, if you enter the text <p>\
9
<font color=blue><tt>I will go to {Paris, New York, London} \
9
<tt>I will go to {Paris, New York, London} \
10
{tomorrow, the next week}</tt></font>,\
10
{tomorrow, the next week}</tt>,
11
<p>the result will be one of the following sentences, at random:\
11
<p>the result will be one of the following sentences, at random:\
12
<pre>\
12
<pre>\
13
I will go to Paris tomorrow\
13
I will go to Paris tomorrow\
14
I will go to New York tomorrow\
14
I will go to New York tomorrow\
15
I will go to London tomorrow\
15
I will go to London tomorrow\
Line 18... Line 18...
18
I will go to London the next week\
18
I will go to London the next week\
19
</pre>
19
</pre>
20
 
20
 
21
!set name_random=Some examples of random generation of parameter: <ul>\
21
!set name_random=Some examples of random generation of parameter: <ul>\
22
 <li>For an integer between 10 and 100 (inclusive):\
22
 <li>For an integer between 10 and 100 (inclusive):\
23
         <tt>randint(10..100)</tt>\
23
         <tt class="wims_code_words">randint(10..100)</tt>\
24
 <li>For an integer multiple of 10 between 10 and 1000 (inclusive):\
24
 <li>For an integer multiple of 10 between 10 and 1000 (inclusive):\
25
        <tt>randint(1..100)*10</tt>\
25
        <tt class="wims_code_words">randint(1..100)*10</tt>\
26
 <li>For a decimal number between 0 and 2:\
26
 <li>For a decimal number between 0 and 2:\
27
        <tt>random(0..2)</tt>\
27
        <tt class="wims_code_words">random(0..2)</tt>\
28
 <li>For a random item within a list:\
28
 <li>For a random item within a list:\
29
        <tt>randitem(a,b,c,10,100,word,a phrase)</tt>\
29
        <tt class="wims_code_words">randitem(a,b,c,10,100,word,a phrase)</tt>\
30
 </ul>
30
 </ul>
31
 
31
 
32
!set name_detail_parm=More details on the computation of parameters.
32
!set name_detail_parm=More details on the computation of parameters.
33
 
33
 
34
 
34