Re: [exslt] math:constant() and math:random()
by Dimitre Novatchev other posts by this author
May 2 2002 5:17AM messages near this date
Re: [exslt] math:constant() and math:random()
|
[exslt] EXSLT.ORG
--- David N Bertoni/Cambridge/IBM <david_n_bertoni@[...].com> wrote:
>
> Hi Jeni,
>
> > Right. I was imagining it differently, I think --
> math:random($length)
> > will always give you the same sequence of random numbers, so
> > math:random($length, $seed) would be used to get a different
> sequence
> > of random numbers, of the same length. The utility would be in
> > providing that different sequence of random numbers, rather than
> the
> > next random number in the same sequence. David -- was that what you
> > had in mind when you suggested seed?
>
> Yes.
>
Then a better name for it will be randomSequence().
Cheers,
Dimitre Novatchev.
P.S. I already have a correct implementation of randomizeList() -- it's
quite different both from random() and from randomSequence().
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
David N Bertoni/Cambridge/IBM
Dimitre Novatchev
|