NewId function produces a unique number. This number is
guaranteed to be unique across the entire cluster and once generated is
never generated a second time. This identifier is suitable for
constructing the document ID part of a Reference.
FQL does not provide random number generation, as its operations attempt to be as deterministic as possible.
If you need a source of random numbers, your host language or browser can provide high-performance random number generation. Once you have generated a random number, you can then use it within your queries in deterministic fashion.
A unique numeric String.
The following query returns a unique numeric string:
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
Thank you for your feedback!