fn:random-number-generator

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

random-number-generator() ➔ map(xs:string, item())

There are no arguments

Result

map(xs:string, item())

random-number-generator($seed as xs:anyAtomicType?) ➔ map(xs:string, item())

Arguments

 

$seed

xs:anyAtomicType?

The supplied seed

Result

map(xs:string, item())

Namespace

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

Links to W3C specifications

XPath 3.1 Functions and Operators

Notes on the Saxon implementation

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