Rev 3614 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3614 | Rev 6097 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 | </li></ul> |
4 | </li></ul> |
| 5 | <p> |
5 | <p> |
| 6 | Reloading a page is interesting when it contains |
6 | Reloading a page is interesting when it contains |
| 7 | \link{def}{random variables}. In this case, to each reloading, the resulting |
7 | \link{def}{random variables}. In this case, to each reloading, the resulting |
| 8 | page is different. |
8 | page is different. |
| 9 | 9 | </p> |
|
| 10 | \def{integer nn=random(1..1000)} |
10 | \def{integer nn=random(1..1000)} |
| 11 | For example, in this page we have defined the variable <tt>\\nn</ |
11 | For example, in this page we have defined the variable <span class="tt wims_code_words">\\nn</span> |
| 12 | to be a random integer between 1 and 1000, by the command |
12 | to be a random integer between 1 and 1000, by the command |
| 13 | <tt>\\def{integer nn=random(1. |
13 | <span class="tt wims_code_words">\\def{integer nn=random(1..1000)}</span>. Here is its current value: |
| - | 14 | ||
| 14 | < |
15 | <span class="tt wims_code_words">\\nn</span>=\nn.</span> |
| 15 | Now |
16 | Now |
| 16 | \reload{reload the page}{reload} (<tt>\\reload{reload the page}</ |
17 | \reload{reload the page}{reload} (<span class="tt wims_code_words">\\reload{reload the page}</span>) |
| 17 | to see the value of <tt>\\nn</ |
18 | to see the value of <span class="tt wims_code_words">\\nn</span> change. |
| 18 | <small>(The button ``reload'' of |
19 | <span class="small">(The button ``reload'' of the browser will not produce this effect.)</span> |
| 19 | <p> |
- | |