[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] generating unique random numbers


Subject: Re: [xsl] generating unique random numbers
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sat, 20 Feb 2010 18:22:25 -0800

> Can anybody please help me
> here? How can I generate unique random numbers in xslt?

Yes, and moreover, written in pure XSLT, so no .NET or Java class
libraries are needed:

   http://fxsl.sourceforge.net/articles/Random/Casting%20the%20Dice%20with%20
FXSL-htm.htm



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play




On Sat, Feb 20, 2010 at 6:02 PM, a kusa <akusa8@xxxxxxxxx> wrote:
>
> Hi
>
> I have been raking my brains to achieve this. I am using math.random()
> to generate random numbers, but of course since they repeat, I want to
> be able to generate unique random numbers. Can anybody please help me
> here? How can I generate unique random numbers in xslt?
>
> Thanks in advance for all your support.


Current Thread
Keywords