Loading TOC...

MarkLogic Server 11.0 Product Documentation
sem.random

sem.random() as Number

Summary

Returns a random double between 0 and 1. This XQuery function backs up the SPARQL RAND() function.

This function is a built-in.

Example

sem.random()
=>
0.462153059928251

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