Given the last random number in a sequence, the transformation calculates the next random number. A useful utility function.
<xsl:template name="next_random"> <xsl:param name="last"/>
Each time the XSLT template is called it delivers another random number. The first time it is called, the user has to supply a seed number. A suggested seed is 17489. Random numbers are in the range 0 to 2147483647. Algorithm is by Parker and Miller.