Rev 5903 | Rev 13705 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5903 | Rev 6838 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | This field accepts the randomization by nestable curly embraces:\ |
3 | This field accepts the randomization by nestable curly embraces:\ |
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><p>\ |
9 | <span class="tt">I will go to {Paris, New York, London} \ |
9 | <span class="tt">I will go to {Paris, New York, London} \ |
10 | {tomorrow, the next week}</span>,\ |
10 | {tomorrow, the next week}</span>,\ |
11 | <p> |
11 | </p><p>the result will be one of the following sentences, at random:</p>\ |
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\ |
16 | I will go to Paris the next week\ |
16 | I will go to Paris the next week\ |
17 | I will go to New York the next week\ |
17 | I will go to New York the next week\ |
18 | I will go to London the next week\ |
18 | I will go to London the next week\ |
19 | </pre> |
19 | </pre><br /> |
- | 20 | Si vous désirez entrer des formules mathématiques, il est conseillé de\ |
|
- | 21 | désactiver cette possibilité en mettant le bouton <span class="wims_code_words">\ |
|
- | 22 | Mise en aléatoire par des accolades emboitables</span> \ |
|
- | 23 | sur <span class="tt">$wims_name_no</span>. |
|
20 | 24 | ||
21 | !set name_random=Some examples of random generation of parameter: <ul>\ |
25 | !set name_random=Some examples of random generation of parameter: <ul>\ |
22 | <li>For an integer between 10 and 100 (inclusive):\ |
26 | <li>For an integer between 10 and 100 (inclusive):\ |
23 | <span class="tt wims_code_words">randint(10..100)</span>\ |
27 | <span class="tt wims_code_words">randint(10..100)</span>\ |
24 | <li>For an integer multiple of 10 between 10 and 1000 (inclusive):\ |
28 | <li>For an integer multiple of 10 between 10 and 1000 (inclusive):\ |