Subversion Repositories wimsdev

Rev

Rev 3614 | Blame | Compare with Previous | Last modification | View Log | RSS feed

Reload the page. Up to 2 arguments.<ul>
<li>Argument 1: the text to show on the link.
</li><li>Argument 2 (optional): the position to go (anchor).
</li></ul>
<p>
Reloading a page is interesting when it contains 
\link{def}{random variables}. In this case, to each reloading, the resulting
page is different.
</p>
\def{integer nn=random(1..1000)}
For example, in this page we have defined the variable <span class="tt wims_code_words">\\nn</span>
to be a random integer between 1 and 1000, by the command
<span class="tt wims_code_words">\\def{integer nn=random(1..1000)}</span>. Here is its current value:

<span class="tt wims_code_words">\\nn</span>=\nn.</span>
Now 
\reload{reload the page}{reload} (<span class="tt wims_code_words">\\reload{reload the page}</span>)
to see the value of <span class="tt wims_code_words">\\nn</span> change.
<span class="small">(The button ``reload'' of the browser will not produce this effect.)</span>