xsl-list
[Top] [All Lists]

Re: [xsl] generating unique random numbers

2010-02-21 16:19:27
a kusa schrieb am 20.02.2010 um 20:02:01 (-0600):

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.

Decrease the likelihood of duplicates by calling math:random() twice and
multiplying the results each time around.

-- 
Michael Ludwig

--~------------------------------------------------------------------
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>
--~--