RE: A basic question

"Don Shanks" <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Alas, I am using libxslt. It appears from looking at the source thatit does
not use a seed in the generation, and random:random-sequence is not
supported.

--D

-----Original Message-----
From: Mike Brown [mailto:[email protected]] 
Sent: Sunday, November 14, 2004 6:16 PM
To: Don Shanks
Cc: [email protected]
Subject: Re: [exslt] A basic question

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.