xt random
Random number generator
HTML only
Generate a random number from value to value inclusive
If from is ommitted 0
is used for the from argument
to is always required
<xt:random to="10000"/>
8671
Multiple calls on one page using the same values will produce the same result
<xt:random from="0" to="10000"/>
4539
4539
To fix this add another argument/value pair I'm using x but any name will do
<xt:random from="0" to="10000" x="1"/>
4964
Change the value of x to change the result
<xt:random from="0" to="10000" x="2"/>
5292
The value and name of the extra parameter can be almost anything
It is just there to make the function call unique so that the cached value is not used
<xt:random from="0" to="10000" banana="custard"/>
298