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

Re: Re: Re: Creating an array

Subject: Re: Re: Re: Creating an array
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Wed, 28 May 2003 06:14:00 +0200
random numbers without repetition
"Alan Gardner" <scipiomedia@xxxxxxxxxxx> wrote in message
news:BAF93B68.6EE3%scipiomedia@xxxxxxxxxxxxxx
> On 5/27/03 2:34 PM, "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> wrote:
>
> >>>> Is it possible to build a delimited string/array? Or does anyone have
> >>>> suggestions on how to eliminate duplicates while generating random
> > numbers
> >>>> in the first place?
> >>>
> >>> Yes, see:
> >>>
> >>> http://sources.redhat.com/ml/xsl-list/2002-05/msg00182.html
> >>
> >> The source you pointed me has uses <xsl:import href="random.xsl"/>.
Where
> > is
> >> this xsl document? I've very interested in testing your solution.
> >
> > I mention briefly there that this solution uses the FXSL functional
> > programming library for XSLT.
> >
> > You can find a detailed explanation how the templates from the
random.xsl
> > module work here:
> >
> >
http://fxsl.sourceforge.net/articles/Random/Casting%20the%20Dice%20with%20FXSL
> > -htm.htm
> >
> > The FXSL library can be downloaded following the "Download" link of the
FXSL
> > project page:
> >
> > https://sourceforge.net/projects/fxsl
>
>
> I suspected you were referencing the Cast of the Dice code. I had already
> investigated it and found that it too was generating duplicate numbers.
The
> solution I need is a way to have random numbers but not duplicated numbers
> (the randomly generated number is associated with a link - which can't be
> duplicated or content on the web site will be redundant.

You missed it completely. Yes, random.xsl generates random numbers, which
may be repeated in a sequence.

However, the solution in the first link I provided uses random.xsl and *does
not* generate repeating results.

It is specifically designed to present/reshuffle all the nodes of a node-set
in a random way, and without repetition.
Just use this solution:

http://sources.redhat.com/ml/xsl-list/2002-05/msg00182.html



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.