This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl:sort with a randomize ability ? or something
- To: xsl-list at mulberrytech dot com
- Subject: Re: xsl:sort with a randomize ability ? or something
- From: David_Marston at lotus dot com
- Date: Sat, 11 Nov 2000 22:19:56 -0500
- Reply-To: xsl-list at mulberrytech dot com
Robert Koberg asks about sorting on some item that will randomize the
elements.
Depending on the behavior of your particular processor, you might get
good randomness from the 3-5 lowest order characters of generate-id().
Use substring() to extract the rightmost characters.
.................David Marston
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list