In the XQuery data model doc() do not change while a query is evaluated.
So a doc() read once can in will be cached for that query. You may get
what you want if you use %non-deterministic.
The built in random functions work like that.
Am 03.06.2020 um 18:26 schrieb Leo Studer:
I try to use random numbers from random.org.
Here my xpath
let $urand :=
for $i in 1 to 10 return
Which brings 10 time the same value, however, every run time a different one.
What is wrong with this code?
Thanks in advance for your valuable input