xsl-list
[Top] [All Lists]

Re: [xsl] generating unique random numbers

2010-02-22 01:29:44
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(_at_)gmail(_dot_)com> 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--