RE: [xsl] exslt random:random-sequence() and Math:random()

Subject: RE: [xsl] exslt random:random-sequence() and Math:random()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 18 Mar 2010 20:17:11 -0000
> So can I somehow use generate-id() to get all numeric unique 
> random ids for a node? 

So long as you don't really care about randomness, and are using the word
simply to mean "unpredictable", then you could try

string-join(for $i in string-to-unicode(generate-id()) return
format-number($i, '000'), '')

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay  

Current Thread