sql:rand( $n as xs:unsignedLong ) as xs:unsignedLong
Return a random number. This differs from xdmp:random in that the argument is a seed.
sql:rand() => 147365250