EXSLT - random:random-sequence

Implementer Page: random.random-sequence.html
Function Package: random.random-sequence.zip

Function Syntax

number+ random:random-sequence(number?, number?)

The random:random-sequence function returns a sequence of random numbers between 0 and 1.

function usage

      <xsl:call-template name="random:random-sequence">
         <xsl:with-param name="numberOfItems" select="number" />
         <xsl:with-param name="seed" select="number" />
      </xsl:call-template>

You may supply the function with an arguement that defines the number of random numbers to generate, with the default value of 1. A seed number maybe provided to the function, with a default value directly related to the current time.

http://www.exslt.org/random/functions/random-sequence/index.html last modified 2003-10-10