Re: [xsl] generating unique random numbers

Subject: Re: [xsl] generating unique random numbers
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Mon, 22 Feb 2010 08:29:22 +0100
What you describe is not a sequence of random numbers; a rule such as
"no duplicates" contradicts most definitions of "randomness". What you
request is better described as "a random permutation of numbers". This could
be produced by random draws from a set of numbers (without returning)
provided that you can, somehow, define this set. Can you?

I regret that I'm not experienced enough to propose an XSLT solution
for such an algorithm.

-W

On Sun, Feb 21, 2010 at 3:02 AM, 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