Re: A basic question

Mike Brown <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Don Shanks wrote:
> I am just trying to integrate exsl into my current stuff, before doing
> anything heavy I thought I would try something simple. I wrote some xml and
> xsl that basically runs through three nodes and writes a random number out
> to the transform. The issue I am getting is that the numbers are always the
> same. I run through the loop three times and gt three different numbers, but
> always the same three numbers in the exact same order, even if I change the
> sort on my transform. Any thoughts?

What implementation are you using?

Even a pseudo-RNG should be seeding from the system clock by default.

If your implementation supports random:random-sequence(), you may want to
use that instead, supplying your own seed passed in via an external param.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.