MarkLogic 9 Product Documentation
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
Powered by MarkLogic Server | Terms of Use | Privacy Policy