Subject: Re: [xsl] generating unique random numbers|
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Mon, 22 Feb 2010 11:36:42 +0100
Kind regards, Abel Braaksma
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.
On Sun, Feb 21, 2010 at 3:02 AM, a kusa <akusa8@xxxxxxxxx> wrote:
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.