Re: [xsl] Random number seed generation

Subject: Re: [xsl] Random number seed generation
From: TW <zupftom@xxxxxxxxxxxxxx>
Date: Fri, 10 Dec 2010 22:01:28 +0100
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