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"/>
9079
Multiple calls on one page using the same values will produce the same result
<xt:random from="0" to="10000"/>
5481
5481
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"/>
1214
Change the value of x to change the result
<xt:random from="0" to="10000" x="2"/>
8594
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"/>
5490