This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: xsl:sort with a randomize ability ? or something



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]