[Home] [By Thread] [By Date] [Recent Entries]


Hi Folks,

Consider this XSLT statement:

<xsl:value-of select="ceiling(math:random() * 50)"/>

What is the range of possible values:

    1 to 50
or
    0 to 50

In other words, the random() function generates a random number from 0 to 1,
inclusive or exclusive?   /Roger



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member