xdmp.random( [max as (Number|String)] ) as (Number|String)
Returns a random unsigned integer between 0 and a number up to 64 bits long.
Parameters | |
---|---|
max | The optional maximum value (inclusive). |
xdmp.random(100); => 47
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.