ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved