[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Random number seed generation

Subject: Re: Random number seed generation
From: TW <zupftom@xxxxxxxxxxxxxx>
Date: Fri, 10 Dec 2010 22:01:28 +0100
Re:  Random number seed generation
2010/12/10 Michel Hendriksen <michel.hendriksen@xxxxxxxxx>:
> Or:
>
>  <with-param name="preliminary-seed"
>  select="($preliminary-seed +
>              10*string-length(
>                substring-before($name-chars,substring($string,1,1))
>              )
>            ) mod $maximum-value"/>
>

No, this still creates the same value for ids that consist of the same
but differently ordered characters.  What you do is multiplying every
summand by 10.  This is the same as multiplying the whole sum by 10.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.