Rev 23 | Rev 4091 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 23 | Rev 2455 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | - | ||
2 | !set field=!item 2 of $special_parm |
- | |
3 | - | ||
4 | !if $field=$empty |
- | |
5 | !exit |
- | |
6 | !endif |
- | |
7 | - | ||
8 | !set embraced_randitem=<p> \ |
1 | !set embraced_randitem=<p> \ |
9 | This field accepts the randomization by nestable curly embraces.\ |
2 | This field accepts the randomization by nestable curly embraces.\ |
10 | <p>\ |
3 | <p>\ |
11 | 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,\ |
12 | 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\ |
Line 23... | Line 16... | ||
23 | I will go to Paris the next week\ |
16 | I will go to Paris the next week\ |
24 | I will go to New York the next week\ |
17 | I will go to New York the next week\ |
25 | I will go to London the next week\ |
18 | I will go to London the next week\ |
26 | </pre> |
19 | </pre> |
27 | 20 | ||
28 | !if $(special_parm[3])!=$empty |
- | |
29 | !readproc model/cut.proc model/src/$(special_parm[3]).oef |
- | |
30 | !set title$field=$model_title |
- | |
31 | !else |
- | |
32 | !readproc model/cut.proc |
- | |
33 | !set title1=$model_title |
- | |
34 | !endif |
- | |
35 | - | ||
36 | <center><h2>$(title$field)</h2></center> |
- | |
37 | - | ||
38 | !if $field=1 |
- | |
39 | <center><b>$desc</b></center> <p> |
- | |
40 | !endif |
- | |
41 | - | ||
42 | $(help$field) |
- | |
43 | - | ||
44 | !if $(name$field) iswordof $model_random |
- | |
45 | <p> |
- | |
46 |
|
21 | !set name_random=Some examples of random generation of parameter: <ul>\ |
47 | <li>For an integer between 10 and 100 (inclusive): |
22 | <li>For an integer between 10 and 100 (inclusive):\ |
48 | <tt>randint(10..100)</tt> |
23 | <tt>randint(10..100)</tt>\ |
49 | <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):\ |
50 | <tt>randint(1..100)*10</tt> |
25 | <tt>randint(1..100)*10</tt>\ |
51 | <li>For a decimal number between 0 and 2: |
26 | <li>For a decimal number between 0 and 2:\ |
52 | <tt>random(0..2)</tt> |
27 | <tt>random(0..2)</tt>\ |
53 | <li>For a random item within a list: |
28 | <li>For a random item within a list:\ |
54 | <tt>randitem(a,b,c,10,100,word,a phrase)</tt> |
29 | <tt>randitem(a,b,c,10,100,word,a phrase)</tt>\ |
55 | </ul |
30 | </ul> |
56 |
|
31 | |
- | 32 | !set name_detail_parm=More details on the computation of parameters. |
|
57 | 33 | ||
58 | !if $(name$field) iswordof $model_computed $model_random |
- | |
59 | <p> |
- | |
60 | !href cmd=help&special_parm=parameters Click here |
- | |
61 | for more details on the computation of parameters. |
- | |
62 | !endif |
- | |
63 | 34 |