EXSLT - random:random-sequence - Implementer Page

Version: 1
Status: implemented
User Page: index.html
XML Definition: random.random-sequence.xml
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.

An implementation of this extension function in the EXSLT random namespace must conform to the behaviour described in this document.

Change History

Submitted: 2003-10-10
Creator: James Fuller(http://www.ruminate.co.uk)

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

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