W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2014

[Bug 20573] Random generator in XPath

From: <bugzilla@jessica.w3.org>
Date: Tue, 29 Apr 2014 17:42:22 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-20573-523-8zU6uD5zxG@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20573

--- Comment #3 from Michael Kay <mike@saxonica.com> ---
The WG reviewed this on 2014-04-29 and there was sentiment in favour of finding
a solution, provided the resulting function was purely deterministic and did
not rely on hidden state. The EXSLT proposal was examined; it was recognized
that having a fixed-length sequence of random numbers to play with created
usability problems. On the other hand a mechanism that only generates a single
random number from a seed has the difficulty (or at least danger) of going into
a closed loop. Michael Sperberg-McQueen suggested a function

random-number-generator(seed) which returns a composite value (array or map)
containing (a) the next random number in the sequence, and (b) a function to
step this along. We would need to construct some examples to see how usable
this is.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 29 April 2014 17:42:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:55 UTC