Loading TOC...

sql:rand

sql:rand(
   $n as xs:unsignedLong
) as xs:unsignedLong

Summary

Return a random number. This differs from xdmp:random in that the argument is a seed.

Parameters
n The random seed. Currently this parameter is ignored.

Example

  sql:rand()
  => 147365250

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.