This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Random Number Gen
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Random Number Gen
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 3 May 2001 15:06:53 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
If you're using a Java processor, something like
<xsl:variable name="rnd" select="math:random()"
xmlns:math="java:java.lang.Math"/>
Details vary slightly depending on the processor.
Mike Kay
Software AG
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> Steve Renshaw
> Sent: 03 May 2001 12:14
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] Random Number Gen
>
>
> How do yuo generate a random number. most algs require
> integers and modulo
> arithmetic - everything is a double in xslt>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list