[xquery-talk] Random number generation : requirements

Christian Grün christian.gruen at gmail.com
Tue May 6 10:51:21 PDT 2014

And here is the Random Module of BaseX:


Similar to Zorba, most functions are non-deterministic. Is there any
particular reason why the official random functions need to be

Hope this helps,

On Tue, May 6, 2014 at 7:42 PM, Matthias Brantner
<matthias.brantner at 28msec.com> wrote:
> Michael
> Here is the documentation of a module containing functions to generate
> random numbers or strings with Zorba.
> http://www.zorba.io/documentation/latest/modules/zorba/xdm/atomic/random
> Please note that some functions are using Zorba's nondeterministic annotation.
> Also note, that there is one function that creates uuids returned as string.
> The functions have proven themselves useful in plenty of scenarios like
> password or web session token generation.
> I hope you find this module useful.
> Matthias
> On May 6, 2014, at 9:53 AM, Michael Kay <mike at saxonica.com> wrote:
>> The W3C WGs are looking at the idea of introducing a random-number function of some kind in XPath 3.1. The challenge of course is making this both usable and a pure function with no side-effects. We have various design ideas which we need to test against requirements.
>> If you have any applications that use or need such a function, please could I have a brief description of the way it uses random numbers, e.g. just wanting a single random number, a random permutation of 52 integers, an arbitrary sequence of random numebrs for test data generation, etc.
>> If you're currently using the EXSLT random-sequence() function, please share your experience with it.
>> Michael Kay
>> Saxonica
>> _______________________________________________
>> talk at x-query.com
>> http://x-query.com/mailman/listinfo/talk
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk

More information about the talk mailing list