Changes

Jump to navigation Jump to search
4 bytes removed ,  14:53, 31 October 2023
no edit summary
This [[Module Library|XQuery Module]] contains functions for computing random values. All functions except for {{Function||random:seeded-double}} and {{Function||random:seeded-integer}} are non-deterministicnondeterministic, i. e., they return different values for each call.
=Conventions=
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>random:double() as xs:double</pre>
|- valign="top"
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>random:integer(
$max as xs:integer := ()
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>random:seeded-double(
$seed as xs:integer,
$num as xs:integer
) as xs:double*</pre>
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>random:seeded-integer(
$seed as xs:integer, $num as xs:integer,
$max as xs:integer := ()
) as xs:integer*</pre>
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>random:gaussian(
$num as xs:integer
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>random:seeded-permutation(
$seed as xs:integer,
$items as item()*
) as item()*</pre>
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>random:uuid() as xs:string</pre>
|- valign="top"
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu