W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2013

[Bug 20573] New: Random generator in XPath

From: <bugzilla@jessica.w3.org>
Date: Sat, 05 Jan 2013 21:34:11 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-20573-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 20573
           Summary: Random generator in XPath
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Functions and Operators 3.0
          Assignee: mike@saxonica.com
          Reporter: jakub@maly.cz
        QA Contact: public-qt-comments@w3.org

A random generator is present in almost every programming language. I was
surprised that XPath does not have one. 

fn:random() as xs:double
returns a random number from the interval [0,1]
fn:random($l as xs:double, $u as xs:double) as xs:double
returns a random number from the interval [$l,$u]

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Saturday, 5 January 2013 21:34:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:41 UTC