[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [xquery-talk] Re: Random number generation : requ
HI, One use case we had during testing was to select random nodes: <xsl:variable name="num" select="test:random(count($ur)) + 1"/> <xsl:apply-templates mode="title-test" select="($ur)[position() = $num]"> If you haven't done so yet, I suggest you have a look at the way Haskell handles randomness and the different the type of data (integer, boolean, b&). - http://learnyouahaskell.com/input-and-output#randomness - https://www.fpcomplete.com/school/starting-with-haskell/libraries-and-framewo rks/randoms
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|