[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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.
|
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
|