fn:random-number-generator

Returns a random number generator, which can be used to generate sequences of random numbers.

random-number-generator($seed as xs:anyAtomicType?:=()) ➔ fn:random-number-generator-record

Arguments

 

$seed

xs:anyAtomicType?

:= ()

The supplied seed

Result

fn:random-number-generator-record

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XPath 3.1 Functions and Operators

XPath 4.0 Functions and Operators

Saxon availability

Available in XPath 3.1, XSLT 3.0, XQuery 3.1, and later versions. From Saxon 10, available in all editions. Implemented in Saxon-PE and Saxon-EE since Saxon 9.7. Available for all platforms.

Notes on the Saxon implementation

Available in Saxon-HE since 10; in Saxon-PE/EE since 9.7.