[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [xquery-talk] Random number generation : requireme

Subject: Re: [xquery-talk] Random number generation : requirements
From: "Adam Retter adam.retter@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 May 2014 18:05:42 -0000
 Re: [xquery-talk] Random number generation : requireme
Just to throw in the functions from eXist which are also non-deterministic -

http://www.exist-db.org/exist/apps/fundocs/index.html?action=search&type=name
&q=random

Personally I would be more interested in having a good random number
source for generating strong UUIDs, at the moment we just have an
extension function which is a non-deterministic wrapper around some
Java -
http://www.exist-db.org/exist/apps/fundocs/index.html?action=search&type=name
&q=uuid

On 6 May 2014 18:51, Christian GrC<n <christian.gruen@xxxxxxxxx> wrote:
> And here is the Random Module of BaseX:
>
>   http://docs.basex.org/wiki/Random_Module
>
> Similar to Zorba, most functions are non-deterministic. Is there any
> particular reason why the official random functions need to be
> deterministic?
>
> Hope this helps,
> Christian
>
>
> On Tue, May 6, 2014 at 7:42 PM, Matthias Brantner
> <matthias.brantner@xxxxxxxxxx> 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@xxxxxxxxxxxx> 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@xxxxxxxxxxx
>>> http://x-query.com/mailman/listinfo/talk
>>
>>
>> _______________________________________________
>> talk@xxxxxxxxxxx
>> http://x-query.com/mailman/listinfo/talk
>
> _______________________________________________
> talk@xxxxxxxxxxx
> http://x-query.com/mailman/listinfo/talk



--
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.