← Prev in month ← Prev in thread
Next in thread → Next in month →

EXSLT random() function generates 0 to 1 inclusive or exclusive?

From
Roger L. Costello <>
To
Date
2004-05-25T19:02:01Z
ID
<00aa01c4428a$c2e78790$>
Thread
EXSLT random() function generates 0 to 1 inclusive or exclusive?
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
← Prev in month ← Prev in thread
Next in thread → Next in month →