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

Re: How to Do Random "Shuffle"?

Subject: Re: How to Do Random "Shuffle"?
From: "Abel Braaksma (Exselt) abel@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Sep 2014 16:38:43 -0000
Re:  How to Do Random "Shuffle"?
> I've recently proposed a family of random number functions for XPath 3.1,
> and I included permute() as a primitive on the theory that a native
> implementation might be considerably more efficient than a user-written
> implementation.
>

Which, for those that have interest in following it, can be found here, and
was apparently originally reported/requested by Jakub Maly, with Michael's
proposal in comment #4: https://www.w3.org/Bugs/Public/show_bug.cgi?id=20573

As the (publicly viewable) comment #4 states, the proposal was added to the
internal Draft of XPath 3.1. Not much help to you yet, I think, because I
highly doubt that there is already an implementation available that supports
this.

As an aside, you may be interested in using FXSL for random numbers, which has
function (or named template) for this purpose. See for examples:
http://fxsl.sourceforge.net/articles/Random/Casting%20the%20Dice%20with%20FXS
L-htm.htm

Cheers,
Abel

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.