Changes

Jump to navigation Jump to search
247 bytes added ,  14:19, 20 July 2022
no edit summary
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|random:double||xs:double}}<br />
|-valign="top"
| '''Summary'''
|Returns a double value between 0.0 (inclusive) and 1.0 (exclusive).<br />
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|random:integer||xs:integer}}<br />{{Func|random:integer|$max as xs:integer|xs:integer}}<br />
|-valign="top"
| '''Summary'''
|Returns an integer value, either in the whole integer range or between 0 (inclusive) and the given maximum (exclusive)<br />
|-valign="top"
| '''Errors'''
|{{Error|bounds|#Errors}} the maximum value is out of bounds.
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|random:seeded-double|$seed as xs:integer, $num as xs:integer|xs:double*}}<br />
|-valign="top"
| '''Summary'''
|Returns a sequence with {{Code|$num}} double values between 0.0 (inclusive) and 1.0 (exclusive). The random values are created using the initial seed given in {{Code|$seed}}.<br />
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|random:seeded-integer|$seed as xs:integer, $num as xs:integer|xs:integer*}}<br />{{Func|random:seeded-integer|$seed as xs:integer, $num as xs:integer, $max as xs:integer|xs:integer*}}
|-valign="top"
| '''Summary'''
|Returns a sequence with {{Code|$num}} integer values, either in the whole integer range or between 0 (inclusive) and the given maximum (exclusive). The random values are created using the initial seed given in {{Code|$seed}}.<br />
|-valign="top"
| '''Errors'''
|{{Error|bounds|#Errors}} the maximum value is out of bounds.<br/>{{Error|negative|#Errors}} the number of values to be returned is negative.
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|random:gaussian|$num as xs:integer|xs:double*}}<br />
|-valign="top"
| '''Summary'''
|Returns a sequence with {{Code|$num}} double values. The random values are Gaussian (i.e. normally) distributed with the mean 0.0. and the derivation 1.0.<br />
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|random:seeded-permutation|$seed as xs:integer, $items as item()*|item()*}}
|-valign="top"
| '''Summary'''
|Returns a random permutation of the specified {{Code|$items}}. The random order is created using the initial seed given in {{Code|$seed}}.<br />
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|random:uuid||xs:string}}
|-valign="top"
| '''Summary'''
|Creates a random universally unique identifier (UUID), represented as 128-bit value.
|-valign="top"
| '''Examples'''
|
! width="110"|Code
|Description
|-valign="top"
|{{Code|bounds}}
|The specified maximum value is out of bounds.
|-valign="top"
|{{Code|negative}}
|The specified number of values to be returned is negative.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu