There's no random number function in XSLT, though there is one in the EXSLT library (
www.exslt.org) which may be available for your processor. If not, you'll have to implement your own extension function, or pass a random number in as a parameter. It depends a bit what you want to achieve - if the same transformation is done twice, do you want the same random number or a different random number?
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference